X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Fbasis%2Ffunctions.h;fp=nucleus%2Flibrary%2Fbasis%2Ffunctions.h;h=821d3e62c428c1233e1ba22525edab9d35f9065e;hb=7b39f7e279005c8466ef508220a532ce2aa4abf8;hp=777461a9002eeece963f4e92d2d85ea758077304;hpb=3fbd372b35b15a19fb171d5ae34294ff7b1e6485;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