Make token available to Lua as a global variable

Reviewed by @RedEnchilada
This commit is contained in:
wolfy852 2016-06-01 21:06:24 -05:00
parent 5c24efac21
commit 919e3ed0e2
1 changed files with 3 additions and 0 deletions

View File

@ -8276,6 +8276,9 @@ static inline int lib_getenum(lua_State *L)
} else if (fastcmp(word,"VERSIONSTRING")) {
lua_pushstring(L, VERSIONSTRING);
return 1;
} else if (fastcmp(word, "token")) {
lua_pushinteger(L, token);
return 1;
}
return 0;