ref: 09ba7616f3ba9bf367aab25731191b96678ea492
dir: /Game/src/cvars.h/
#ifndef _CVARS_H_ #define _CVARS_H_ #define REGCONVAR(varname, varhelp, variable, function) CVAR_RegisterCvar(varname, varhelp, &variable, &function) #define REGCONFUNC(varname, varhelp, function) CVAR_RegisterCvar(varname, varhelp, NULL, &function) #ifdef _WIN32 #include "../../Engine/src/windows/inttypes.h" #else #include <inttypes.h> #endif typedef void (*function_t) (void* binding); typedef struct t_cvar_binding { uint8_t name[64]; uint8_t help[64]; void* variable; function_t function; } cvar_binding; void CVAR_RegisterCvar(const uint8_t * varname, const uint8_t * varhelp, void* variable, function_t function); int CVAR_GetNumCvarBindings(); cvar_binding* CVAR_GetCvarBinding(unsigned int nBinding); void CVAR_Render(); #endif