| 379 | |
| 380 | |
| 381 | LUALIB_API const char *luaL_optlstring (lua_State *L, int arg, |
| 382 | const char *def, size_t *len) { |
| 383 | if (lua_isnoneornil(L, arg)) { |
| 384 | if (len) |
| 385 | *len = (def ? strlen(def) : 0); |
| 386 | return def; |
| 387 | } |
| 388 | else return luaL_checklstring(L, arg, len); |
| 389 | } |
| 390 | |
| 391 | |
| 392 | LUALIB_API lua_Number luaL_checknumber (lua_State *L, int arg) { |
no test coverage detected