MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / luaL_optlstring

Function luaL_optlstring

lua/lauxlib.c:202–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200
201
202LUALIB_API const char *luaL_optlstring (lua_State *L, int narg,
203 const char *def, size_t *len) {
204 if (lua_isnoneornil(L, narg)) {
205 if (len)
206 *len = (def ? strlen(def) : 0);
207 return def;
208 }
209 else return luaL_checklstring(L, narg, len);
210}
211
212
213LUALIB_API lua_Number luaL_checknumber (lua_State *L, int narg) {

Callers 1

tconcatFunction · 0.85

Calls 1

luaL_checklstringFunction · 0.85

Tested by

no test coverage detected