We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e1e4e6 commit b466f3cCopy full SHA for b466f3c
src/xrCore/_std_extensions.h
@@ -72,15 +72,15 @@ struct XRCORE_API xr_token
72
int id;
73
};
74
75
-IC LPCSTR get_token_name(xr_token* tokens, int key)
+IC LPCSTR get_token_name(const xr_token* tokens, int key)
76
{
77
for (int k = 0; tokens[k].name; k++)
78
if (key == tokens[k].id)
79
return tokens[k].name;
80
return "";
81
}
82
83
-IC int get_token_id(xr_token* tokens, LPCSTR key)
+IC int get_token_id(const xr_token* tokens, LPCSTR key)
84
85
86
if (_stricmp(tokens[k].name, key) == 0)
0 commit comments