MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / lua_isstring

Function lua_isstring

xrepo/packages/l/lua/port/lua/src/lapi.c:320–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318
319
320LUA_API int lua_isstring (lua_State *L, int idx) {
321 const TValue *o = index2value(L, idx);
322 return (ttisstring(o) || cvt2str(o));
323}
324
325
326LUA_API int lua_isuserdata (lua_State *L, int idx) {

Callers 7

generic_readerFunction · 0.70
add_valueFunction · 0.70
luaL_tolstringFunction · 0.70
addfieldFunction · 0.70
findloaderFunction · 0.70
bind_ecsFunction · 0.50
bind_skr_resource_handleFunction · 0.50

Calls 1

index2valueFunction · 0.85

Tested by

no test coverage detected