MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / lua_newuserdata

Function lua_newuserdata

src/Chain/libraries/glua/lapi.cpp:1272–1281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1270
1271
1272LUA_API void *lua_newuserdata(lua_State *L, size_t size) {
1273 Udata *u;
1274 lua_lock(L);
1275 luaC_checkGC(L);
1276 u = luaS_newudata(L, size);
1277 setuvalue(L, L->top, u);
1278 api_incr_top(L);
1279 lua_unlock(L);
1280 return getudatamem(u);
1281}
1282
1283
1284static const char *aux_upvalue(StkId fi, int n, TValue **val,

Callers 3

gmatchFunction · 0.85
newprefileFunction · 0.85
newboxFunction · 0.85

Calls 1

luaS_newudataFunction · 0.85

Tested by

no test coverage detected