| 407 | |
| 408 | |
| 409 | LUALIB_API const char *luaL_optlstring (lua_State *L, int arg, |
| 410 | const char *def, size_t *len) { |
| 411 | if (lua_isnoneornil(L, arg)) { |
| 412 | if (len) |
| 413 | *len = (def ? strlen(def) : 0); |
| 414 | return def; |
| 415 | } |
| 416 | else return luaL_checklstring(L, arg, len); |
| 417 | } |
| 418 | |
| 419 | |
| 420 | LUALIB_API lua_Number luaL_checknumber (lua_State *L, int arg) { |
no test coverage detected