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

Function lua_newuserdata

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

Source from the content-addressed store, hash-verified

1173
1174
1175LUA_API void *lua_newuserdata (lua_State *L, size_t size) {
1176 Udata *u;
1177 lua_lock(L);
1178 luaC_checkGC(L);
1179 u = luaS_newudata(L, size, NULL);
1180 setuvalue(L, L->top, u);
1181 api_incr_top(L);
1182 lua_unlock(L);
1183 return u + 1;
1184}
1185
1186
1187

Callers 2

luaL_prepbuffsizeFunction · 0.70
newprefileFunction · 0.70

Calls 1

luaS_newudataFunction · 0.70

Tested by

no test coverage detected