Changed calling conventions again

This commit is contained in:
2020-12-05 18:57:53 -05:00
parent 150a71433b
commit c751678179
14 changed files with 403 additions and 219 deletions

19
luprex/syscpp/idalloc.cpp Normal file
View File

@@ -0,0 +1,19 @@
#include "luastack.hpp"
#include "idalloc.hpp"
LuaDefineGlobalMethod(idalloc_getnextid) {
LuaRet value;
LuaStack LS(L, value);
double id = lua_getnextid(L);
LS.set(value, id);
return LS.result();
}
LuaDefineGlobalMethod(idalloc_setnextid) {
LuaArg value;
LuaStack LS(L, value);
double id = LS.tonumber(value);
lua_setnextid(L, int64_t(id));
return LS.result();
}