MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaL_optlstring

Function luaL_optlstring

third-party/lua-5.2.4/src/lauxlib.c:364–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362
363
364LUALIB_API const char *luaL_optlstring (lua_State *L, int narg,
365 const char *def, size_t *len) {
366 if (lua_isnoneornil(L, narg)) {
367 if (len)
368 *len = (def ? strlen(def) : 0);
369 return def;
370 }
371 else return luaL_checklstring(L, narg, len);
372}
373
374
375LUALIB_API lua_Number luaL_checknumber (lua_State *L, int narg) {

Callers 2

str_repFunction · 0.70
tconcatFunction · 0.70

Calls 1

luaL_checklstringFunction · 0.70

Tested by

no test coverage detected