MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / lua_isnumber

Function lua_isnumber

3rd/lua-5.4.3/src/lapi.c:303–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301
302
303LUA_API int lua_isnumber (lua_State *L, int idx) {
304 lua_Number n;
305 const TValue *o = index2value(L, idx);
306 return tonumber(o, &n);
307}
308
309
310LUA_API int lua_isstring (lua_State *L, int idx) {

Callers 3

luaToStringFunction · 0.85
CreateFromLuaFunction · 0.85
interrorFunction · 0.85

Calls 1

index2valueFunction · 0.85

Tested by

no test coverage detected