MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / lua_newuserdata

Function lua_newuserdata

ogsr_engine/LuaJIT/src/lj_api.c:759–769  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

757}
758
759LUA_API void *lua_newuserdata(lua_State *L, size_t size)
760{
761 GCudata *ud;
762 lj_gc_check(L);
763 if (size > LJ_MAX_UDATA)
764 lj_err_msg(L, LJ_ERR_UDATAOV);
765 ud = lj_udata_new(L, (MSize)size, getcurrenv(L));
766 setudataV(L, L->top, ud);
767 incr_top(L);
768 return uddata(ud);
769}
770
771LUA_API void lua_concat(lua_State *L, int n)
772{

Callers 15

io_file_newFunction · 0.70
io_std_newFunction · 0.70
lib_base.cFile · 0.70
luaopen_mathFunction · 0.70
ll_registerFunction · 0.70
getMethod · 0.50
lua_pushsvtFunction · 0.50
register_Method · 0.50
stage1Method · 0.50
allocateMethod · 0.50
openFunction · 0.50
applyMethod · 0.50

Calls 3

lj_err_msgFunction · 0.85
lj_udata_newFunction · 0.85
getcurrenvFunction · 0.70

Tested by

no test coverage detected