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

Function NumberValue

Plugins/UnLuaExtensions/LuaRapidjson/Source/src/values.cpp:46–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 }
45
46 Value NumberValue(lua_State* L, int idx) {
47 int64_t integer;
48 return luax::isinteger(L, idx, &integer) ? Value(integer) : Value(lua_tonumber(L, idx));
49 }
50
51 Value StringValue(lua_State* L, int idx, Allocator& allocator) {
52 size_t len;

Callers 1

toValueFunction · 0.85

Calls 1

isintegerFunction · 0.85

Tested by

no test coverage detected