Add functions and int vars

This commit is contained in:
Such Meme, Many Skill
2020-03-31 14:24:34 +02:00
parent 33a64abfb0
commit 38f349618f
8 changed files with 250 additions and 10 deletions

View File

@@ -0,0 +1,13 @@
#pragma once
#include "../../utils/types.h"
typedef void (*func_void_ptr)();
typedef int (*func_int_ptr)();
typedef struct {
char *key;
func_int_ptr value;
u8 arg_count;
} str_fnc_struct;
int run_function(char *func_name, int *out);