MCPcopy Create free account
hub / github.com/F-Stack/f-stack / lua_tonumber

Function lua_tonumber

app/redis-6.2.6/deps/lua/src/lapi.c:313–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311
312
313LUA_API lua_Number lua_tonumber (lua_State *L, int idx) {
314 TValue n;
315 const TValue *o = index2adr(L, idx);
316 if (tonumber(o, &n))
317 return nvalue(o);
318 else
319 return 0;
320}
321
322
323LUA_API lua_Integer lua_tointeger (lua_State *L, int idx) {

Callers 15

zcp_table_to_nvlistFunction · 0.85
zcp_lua_to_nvlist_implFunction · 0.85
zcp_clones_iterFunction · 0.85
zcp_snapshots_iterFunction · 0.85
zcp_children_iterFunction · 0.85
zcp_bookmarks_iterFunction · 0.85
zcp_holds_iterFunction · 0.85
maxnFunction · 0.85
luaReplyToRedisReplyFunction · 0.85
luaRedisGenericCommandFunction · 0.85
luaRedisSetReplCommandFunction · 0.85
luaLogCommandFunction · 0.85

Calls 1

index2adrFunction · 0.85

Tested by

no test coverage detected