MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaL_optlstring

Function luaL_optlstring

app/redis-6.2.6/deps/lua/src/lauxlib.c:165–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163
164
165LUALIB_API const char *luaL_optlstring (lua_State *L, int narg,
166 const char *def, size_t *len) {
167 if (lua_isnoneornil(L, narg)) {
168 if (len)
169 *len = (def ? strlen(def) : 0);
170 return def;
171 }
172 else return luaL_checklstring(L, narg, len);
173}
174
175
176LUALIB_API lua_Number luaL_checknumber (lua_State *L, int narg) {

Callers 1

tconcatFunction · 0.70

Calls 1

luaL_checklstringFunction · 0.70

Tested by

no test coverage detected