X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Fbasis%2Ffunctions.h;h=821d3e62c428c1233e1ba22525edab9d35f9065e;hb=d7e8a05960951d8ce67e36c587726a851e2f5165;hp=777461a9002eeece963f4e92d2d85ea758077304;hpb=fa30e6adff1dea5d6b3903279ef024dd3bed043f;p=feisty_meow.git diff --git a/nucleus/library/basis/functions.h b/nucleus/library/basis/functions.h index 777461a9..821d3e62 100644 --- a/nucleus/library/basis/functions.h +++ b/nucleus/library/basis/functions.h @@ -114,11 +114,11 @@ template type sign(type a) //! deletion with clearing of the pointer. /*! this function simplifies the two step process of deleting a pointer and -then clearing it to NIL. this makes debugging a bit easier since an access -of NIL should always cause a fault, rather than looking like a possibly +then clearing it to NULL_POINTER. this makes debugging a bit easier since an access +of NULL_POINTER should always cause a fault, rather than looking like a possibly valid object. */ template -void WHACK(contents * &ptr) { if (ptr) { delete ptr; ptr = NIL; } } +void WHACK(contents * &ptr) { if (ptr) { delete ptr; ptr = NULL_POINTER; } } //! Returns an object that is defined statically. /*! Thus the returned object will never be recreated once this function