MCPcopy Create free account
hub / github.com/Tencent/xLua / lua_pushuint64

Function lua_pushuint64

WebGLPlugins/i64lib.c:121–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119
120#if defined(UINT_ESPECIALLY)
121LUALIB_API void lua_pushuint64(lua_State* L, uint64_t n) {
122 Integer64* p = (Integer64*)lua_newuserdata(L, sizeof(Integer64));
123 p->fake_id = -1;
124 p->data.u64 = n;
125 p->type = UInt;
126 lua_rawgeti(L, LUA_REGISTRYINDEX, INT64_META_REF);
127 lua_setmetatable(L, -2);
128}
129
130
131LUALIB_API int lua_isuint64(lua_State* L, int pos) {

Callers 9

int64_addFunction · 0.85
int64_subFunction · 0.85
int64_mulFunction · 0.85
int64_divFunction · 0.85
int64_modFunction · 0.85
int64_powFunction · 0.85
uint64_divideFunction · 0.85
uint64_remainderFunction · 0.85
uint64_parseFunction · 0.85

Calls 5

lua_newuserdataFunction · 0.85
lua_rawgetiFunction · 0.85
lua_setmetatableFunction · 0.85
lua_pushint64Function · 0.85
lua_pushintegerFunction · 0.85

Tested by

no test coverage detected