| 236 | } |
| 237 | |
| 238 | DISABLE_WARNING_UNREACHABLE_CODE |
| 239 | |
| 240 | schar |
| 241 | get_table_mapchr(lua_State *L, const char *name) |
| 242 | { |
| 243 | char *ter; |
| 244 | xint8 typ; |
| 245 | |
| 246 | ter = get_table_str(L, name); |
| 247 | typ = check_mapchr(ter); |
| 248 | if (typ == INVALID_TYPE) |
| 249 | nhl_error(L, "Erroneous map char"); |
| 250 | if (ter) |
| 251 | free(ter); |
| 252 | return typ; |
| 253 | } |
| 254 | |
| 255 | schar |
| 256 | get_table_mapchr_opt(lua_State *L, const char *name, schar defval) |
no test coverage detected