MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / luaL_optlstring

Function luaL_optlstring

ThirdParty/lua/lua/lauxlib.c:381–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379
380
381LUALIB_API const char *luaL_optlstring (lua_State *L, int arg,
382 const char *def, size_t *len) {
383 if (lua_isnoneornil(L, arg)) {
384 if (len)
385 *len = (def ? strlen(def) : 0);
386 return def;
387 }
388 else return luaL_checklstring(L, arg, len);
389}
390
391
392LUALIB_API lua_Number luaL_checknumber (lua_State *L, int arg) {

Callers 2

str_repFunction · 0.85
tconcatFunction · 0.85

Calls 1

luaL_checklstringFunction · 0.85

Tested by

no test coverage detected