MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / luaL_optlstring

Function luaL_optlstring

lib/lua/src/lauxlib.c:412–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410
411
412LUALIB_API const char *luaL_optlstring (lua_State *L, int arg,
413 const char *def, size_t *len) {
414 if (lua_isnoneornil(L, arg)) {
415 if (len)
416 *len = (def ? strlen(def) : 0);
417 return def;
418 }
419 else return luaL_checklstring(L, arg, len);
420}
421
422
423LUALIB_API lua_Number luaL_checknumber (lua_State *L, int arg) {

Callers 4

str_repFunction · 0.85
tconcatFunction · 0.85
os_dateFunction · 0.85
luaStringSplitFunction · 0.85

Calls 1

luaL_checklstringFunction · 0.85

Tested by

no test coverage detected