MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / pushuserdata

Function pushuserdata

Dependencies/lua/src/ltests.c:1107–1111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1105
1106
1107static int pushuserdata (lua_State *L) {
1108 lua_Integer u = luaL_checkinteger(L, 1);
1109 lua_pushlightuserdata(L, cast_voidp(cast_sizet(u)));
1110 return 1;
1111}
1112
1113
1114static int udataval (lua_State *L) {

Callers

nothing calls this directly

Calls 2

luaL_checkintegerFunction · 0.85
lua_pushlightuserdataFunction · 0.85

Tested by

no test coverage detected