MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / lua_newuserdata

Function lua_newuserdata

Source/Misc/lua/src/lua.c:2874–2883  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2872
2873
2874LUA_API void *lua_newuserdata (lua_State *L, size_t size) {
2875Udata *u;
2876lua_lock(L);
2877luaC_checkGC(L);
2878u = luaS_newudata(L, size, getcurrenv(L));
2879setuvalue(L, L->top, u);
2880api_incr_top(L);
2881lua_unlock(L);
2882return u + 1;
2883}
2884
2885
2886

Callers 15

luausb_push_interfaceFunction · 0.85
luausb_push_deviceFunction · 0.85
luausb_push_transferFunction · 0.85
luausb_push_contextFunction · 0.85
usb.cFile · 0.85
register_Method · 0.85

Calls 2

luaS_newudataFunction · 0.85
getcurrenvFunction · 0.85

Tested by

no test coverage detected