| 410 | |
| 411 | |
| 412 | LUALIB_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 | |
| 423 | LUALIB_API lua_Number luaL_checknumber (lua_State *L, int arg) { |
no test coverage detected