| 395 | |
| 396 | |
| 397 | LUALIB_API const char *luaL_optlstring (lua_State *L, int arg, |
| 398 | const char *def, size_t *len) { |
| 399 | if (lua_isnoneornil(L, arg)) { |
| 400 | if (len) |
| 401 | *len = (def ? strlen(def) : 0); |
| 402 | return def; |
| 403 | } |
| 404 | else return luaL_checklstring(L, arg, len); |
| 405 | } |
| 406 | |
| 407 | |
| 408 | LUALIB_API lua_Number luaL_checknumber (lua_State *L, int arg) { |
no test coverage detected