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

Function lua_newuserdata

third-party/lua-5.3.5/src/lapi.c:1184–1193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1182
1183
1184LUA_API void *lua_newuserdata (lua_State *L, size_t size) {
1185 Udata *u;
1186 lua_lock(L);
1187 u = luaS_newudata(L, size);
1188 setuvalue(L, L->top, u);
1189 api_incr_top(L);
1190 luaC_checkGC(L);
1191 lua_unlock(L);
1192 return getudatamem(u);
1193}
1194
1195
1196

Callers 3

gmatchFunction · 0.70
newboxFunction · 0.70
newprefileFunction · 0.70

Calls 1

luaS_newudataFunction · 0.70

Tested by

no test coverage detected