diff options
Diffstat (limited to 'ltests.c')
-rw-r--r-- | ltests.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -1488,6 +1488,10 @@ static int runC (lua_State *L, lua_State *L1, const char *pc) { | |||
1488 | else if EQ("pushfstringP") { | 1488 | else if EQ("pushfstringP") { |
1489 | lua_pushfstring(L1, lua_tostring(L, -2), lua_topointer(L, -1)); | 1489 | lua_pushfstring(L1, lua_tostring(L, -2), lua_topointer(L, -1)); |
1490 | } | 1490 | } |
1491 | else if EQ("rawget") { | ||
1492 | int t = getindex; | ||
1493 | lua_rawget(L1, t); | ||
1494 | } | ||
1491 | else if EQ("rawgeti") { | 1495 | else if EQ("rawgeti") { |
1492 | int t = getindex; | 1496 | int t = getindex; |
1493 | lua_rawgeti(L1, t, getnum); | 1497 | lua_rawgeti(L1, t, getnum); |
@@ -1496,6 +1500,14 @@ static int runC (lua_State *L, lua_State *L1, const char *pc) { | |||
1496 | int t = getindex; | 1500 | int t = getindex; |
1497 | lua_rawgetp(L1, t, cast_voidp(cast_sizet(getnum))); | 1501 | lua_rawgetp(L1, t, cast_voidp(cast_sizet(getnum))); |
1498 | } | 1502 | } |
1503 | else if EQ("rawset") { | ||
1504 | int t = getindex; | ||
1505 | lua_rawset(L1, t); | ||
1506 | } | ||
1507 | else if EQ("rawseti") { | ||
1508 | int t = getindex; | ||
1509 | lua_rawseti(L1, t, getnum); | ||
1510 | } | ||
1499 | else if EQ("rawsetp") { | 1511 | else if EQ("rawsetp") { |
1500 | int t = getindex; | 1512 | int t = getindex; |
1501 | lua_rawsetp(L1, t, cast_voidp(cast_sizet(getnum))); | 1513 | lua_rawsetp(L1, t, cast_voidp(cast_sizet(getnum))); |
@@ -1538,6 +1550,10 @@ static int runC (lua_State *L, lua_State *L1, const char *pc) { | |||
1538 | const char *s = getstring; | 1550 | const char *s = getstring; |
1539 | lua_setfield(L1, t, s); | 1551 | lua_setfield(L1, t, s); |
1540 | } | 1552 | } |
1553 | else if EQ("seti") { | ||
1554 | int t = getindex; | ||
1555 | lua_seti(L1, t, getnum); | ||
1556 | } | ||
1541 | else if EQ("setglobal") { | 1557 | else if EQ("setglobal") { |
1542 | const char *s = getstring; | 1558 | const char *s = getstring; |
1543 | lua_setglobal(L1, s); | 1559 | lua_setglobal(L1, s); |