| 188 | |
| 189 | |
| 190 | LUALIB_API const char *luaL_optlstring (lua_State *L, int narg, |
| 191 | const char *def, size_t *len) { |
| 192 | if (lua_isnoneornil(L, narg)) { |
| 193 | if (len) |
| 194 | *len = (def ? strlen(def) : 0); |
| 195 | return def; |
| 196 | } |
| 197 | else return luaL_checklstring(L, narg, len); |
| 198 | } |
| 199 | |
| 200 | |
| 201 | LUALIB_API lua_Number luaL_checknumber (lua_State *L, int narg) { |
no test coverage detected