MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / lua_newuserdata

Function lua_newuserdata

third-party/lua-5.1.5/src/lapi.c:1025–1034  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1023
1024
1025LUA_API void *lua_newuserdata (lua_State *L, size_t size) {
1026 Udata *u;
1027 lua_lock(L);
1028 luaC_checkGC(L);
1029 u = luaS_newudata(L, size, getcurrenv(L));
1030 setuvalue(L, L->top, u);
1031 api_incr_top(L);
1032 lua_unlock(L);
1033 return u + 1;
1034}
1035
1036
1037

Callers 3

luaB_newproxyFunction · 0.70
ll_registerFunction · 0.70
newfileFunction · 0.70

Calls 2

getcurrenvFunction · 0.85
luaS_newudataFunction · 0.70

Tested by

no test coverage detected