Add token literals to the lua parser
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user