MCPcopy Create free account
hub / github.com/DFHack/dfhack / lua_newuserdata

Function lua_newuserdata

depends/lua/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 8

NewMethod · 0.85
push_adhoc_pointerMethod · 0.85
dfhack_penarray_newFunction · 0.85
push_object_refMethod · 0.85
make_lua_userdataFunction · 0.85
gmatchFunction · 0.85
newboxFunction · 0.85
newprefileFunction · 0.85

Calls 1

luaS_newudataFunction · 0.85

Tested by

no test coverage detected