MCPcopy Create free account
hub / github.com/NetHack/NetHack / l_obj_isnull

Function l_obj_isnull

src/nhlobj.c:482–489  ·  view source on GitHub ↗

Is the object a null? */ local badobj = o:isnull(); */

Source from the content-addressed store, hash-verified

480/* Is the object a null? */
481/* local badobj = o:isnull(); */
482staticfn int
483l_obj_isnull(lua_State *L)
484{
485 struct _lua_obj *lo = l_obj_check(L, 1);
486
487 lua_pushboolean(L, !lobj_is_ok(lo));
488 return 1;
489}
490
491DISABLE_WARNING_UNREACHABLE_CODE
492

Callers

nothing calls this directly

Calls 1

l_obj_checkFunction · 0.85

Tested by

no test coverage detected