nh.deltrap(x, y);
+=== impossible
+
+Issue an impossible, signaling a possible error in the code.
+
+Example:
+
+ nh.impossible("Something errory happened!");
+
+
=== ing_suffix
Construct a gerund (a verb formed by appending "ing" to a noun).
#if 0
static int nhl_setmap(lua_State *);
#endif
+static int nhl_impossible(lua_State *);
static int nhl_pline(lua_State *);
static int nhl_verbalize(lua_State *);
static int nhl_parse_config(lua_State *);
RESTORE_WARNING_CONDEXPR_IS_CONSTANT
+/* impossible("Error!") */
+static int
+nhl_impossible(lua_State *L)
+{
+ int argc = lua_gettop(L);
+
+ if (argc == 1)
+ impossible("%s", luaL_checkstring(L, 1));
+ else
+ nhl_error(L, "Wrong args");
+ return 0;
+}
+
/* pline("It hits!") */
static int
nhl_pline(lua_State *L)
{"abscoord", nhl_abs_coord},
+ {"impossible", nhl_impossible},
{"pline", nhl_pline},
{"verbalize", nhl_verbalize},
{"menu", nhl_menu},