| 322 | |
| 323 | |
| 324 | LUALIB_API const char *luaL_optlstring (lua_State *L, int narg, |
| 325 | const char *def, size_t *len) { |
| 326 | if (lua_isnoneornil(L, narg)) { |
| 327 | if (len) |
| 328 | *len = (def ? strlen(def) : 0); |
| 329 | return def; |
| 330 | } |
| 331 | else return luaL_checklstring(L, narg, len); |
| 332 | } |
| 333 | |
| 334 | |
| 335 | LUALIB_API lua_Number luaL_checknumber (lua_State *L, int narg) { |
no test coverage detected