Changed calling conventions again
This commit is contained in:
19
luprex/syscpp/idalloc.cpp
Normal file
19
luprex/syscpp/idalloc.cpp
Normal 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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user