| 362 | |
| 363 | |
| 364 | LUALIB_API const char *luaL_optlstring (lua_State *L, int narg, |
| 365 | const char *def, size_t *len) { |
| 366 | if (lua_isnoneornil(L, narg)) { |
| 367 | if (len) |
| 368 | *len = (def ? strlen(def) : 0); |
| 369 | return def; |
| 370 | } |
| 371 | else return luaL_checklstring(L, narg, len); |
| 372 | } |
| 373 | |
| 374 | |
| 375 | LUALIB_API lua_Number luaL_checknumber (lua_State *L, int narg) { |
no test coverage detected