MCPcopy Create free account
hub / github.com/Tencent/UnLua / lua_tonumberx

Function lua_tonumberx

Plugins/UnLuaExtensions/LuaProtobuf/Source/src/pb.cpp:65–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65static lua_Number lua_tonumberx(lua_State *L, int idx, int *isnum) {
66 lua_Number i = lua_tonumber(L, idx);
67 if (isnum) *isnum = (i != 0 || lua_type(L, idx) == LUA_TNUMBER);
68 return i;
69}
70
71static void *luaL_testudata(lua_State *L, int idx, const char *type) {
72 void *p = lua_touserdata(L, idx);

Callers 2

lpb_tointegerxFunction · 0.70
lpb_addtypeFunction · 0.70

Calls 1

lua_typeFunction · 0.85

Tested by

no test coverage detected