VM
Size: a a a
VM
IS
lua_pop(L, nargs);
for (unsigned i = 0; i<nresults; i++)
lua_pushnil(L);
G
IS
static inline void lua_callglobal(lua_State *L, const char *name, int nargs, int nresults) {
if (lua_getglobal(L, name) == LUA_TFUNCTION) {
lua_call(L, nargs, nresults);
} else {
lua_pop(L, nargs + 1); // +1 for global
lua_settop(L, lua_gettop(L) + nresults);
}
}IS
G
IS
if (lua_getfield(L, -1, "run") == LUA_TFUNCTION) {
if (lua_pcall(L, 0, 0, 0) != LUA_OK) {
lua_error(L); // force panic
}
} else {
lua_pop(L, 1); // pop field
}
вызыватьluax_Pcallfield(L, "run", 0, 0);
IS
IS
IS
[string "?"]:19: bad argument #1 to 'setCanvas' (number expected, got string)G
G
IS
G
IS
G
G
z
Lua случайно нет ничего типа define в C++?AM
AM