Skip to end of metadata
Go to start of metadata
Console Macros

Macros used in the console system.

ALLOW_AUDIT_CVARS Macro
C++
#define ALLOW_AUDIT_CVARS 1
File

IConsole.h

CVAR_FLOAT Macro
C++
#define CVAR_FLOAT 2
File

IConsole.h

CVAR_GROUPS_ARE_PRIVILEGED Macro
C++
#define CVAR_GROUPS_ARE_PRIVILEGED 1 // allows cvar groups to manipulate const/cheat cvars (turn off to log group cvar manipulation)
File

IConsole.h

Description

allows cvar groups to manipulate const/cheat cvars (turn off to log group cvar manipulation)

CVAR_INT Macro
C++
#define CVAR_INT 1
File

IConsole.h

CVAR_STRING Macro
C++
#define CVAR_STRING 3
File

IConsole.h

CVF_CHANGE_SOURCE Macro
C++
#define CVF_CHANGE_SOURCE (1u<<16)
File

IConsole.h

Description

If this flag is set during registering a console variable, and the variable exists, then the variable will store its value in memory given by src

LOG_CVAR_INFRACTIONS Macro
C++
#define LOG_CVAR_INFRACTIONS 1
File

IConsole.h

LOG_CVAR_INFRACTIONS_CALLSTACK Macro
C++
#define LOG_CVAR_INFRACTIONS_CALLSTACK (LOG_CVAR_INFRACTIONS && 0) // logs the callstack when certain cvar issues arise; helpful in tracking down where the problem originated
File

IConsole.h

Description

logs the callstack when certain cvar issues arise; helpful in tracking down where the problem originated

LOG_CVAR_USAGE Macro
C++
#define LOG_CVAR_USAGE 1
File

IConsole.h

In This Topic

  • No labels