Created
August 21, 2013 15:56
-
-
Save alecmce/6296341 to your computer and use it in GitHub Desktop.
partial from Object.h, built by #hxcpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inline OBJ_ *GetPtr() const { return mPtr; } | |
inline OBJ_ *operator->() | |
{ | |
#ifdef HXCPP_CHECK_POINTER | |
if (!mPtr) NullReference("Object", true); | |
// The handler might have fixed up the null value | |
if (!mPtr) NullReference("Object", false); | |
#endif | |
return mPtr; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just interested what the HXCPP_CHECK_POINTER is for? Just a debugging flag?