MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / lua_newuserdata

Function lua_newuserdata

lua/lapi.c:1032–1041  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1030
1031
1032LUA_API void *lua_newuserdata (lua_State *L, size_t size) {
1033 Udata *u;
1034 lua_lock(L);
1035 luaC_checkGC(L);
1036 u = luaS_newudata(L, size, getcurrenv(L));
1037 setuvalue(L, L->top, u);
1038 api_incr_top(L);
1039 lua_unlock(L);
1040 return u + 1;
1041}
1042
1043
1044

Callers 5

luaB_newproxyFunction · 0.85
copy_comdb2_typeFunction · 0.85
init_db_funcsFunction · 0.85
ll_registerFunction · 0.85
newfileFunction · 0.85

Calls 2

luaS_newudataFunction · 0.85
getcurrenvFunction · 0.85

Tested by

no test coverage detected