Add token literals to the lua parser

This commit is contained in:
2026-02-19 00:11:44 -05:00
parent 1fd06f0628
commit 7039c43065
8 changed files with 58 additions and 3 deletions

View File

@@ -342,6 +342,13 @@ int luaK_numberK (FuncState *fs, lua_Number r) {
}
int luaK_lightuserdataK (FuncState *fs, void *p) {
TValue o;
setpvalue(&o, p);
return addk(fs, &o, &o);
}
static int boolK (FuncState *fs, int b) {
TValue o;
setbvalue(&o, b);