MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / lua_tonumber

Function lua_tonumber

lua/lapi.c:314–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 15

luaB_tonumberFunction · 0.85
luaB_setfenvFunction · 0.85
luabb_tointeger_intFunction · 0.85
luabb_toreal_intFunction · 0.85
luabb_todatetime_intFunction · 0.85
luabb_dumpcstack_Function · 0.85
luaL_checknumberFunction · 0.85
stmt_bind_intFunction · 0.85
dbtable_emit_intFunction · 0.85
copy_state_tableFunction · 0.85
copy_state_stacksFunction · 0.85

Calls 1

index2adrFunction · 0.85

Tested by

no test coverage detected