Guest User

Untitled

a guest
Jul 18th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. #include "EmuCore.h"
  2. #include "ObjCLib.h"
  3. #include "NSNull.h"
  4.  
  5. id nullSingleton;
  6.  
  7. BEGIN_DEFINE_OBJC_CLASS_IMPL(NSNull, NSObject)
  8. DEFINE_OBJC_CLASS_METHOD_NO_PARAMS(nullRet)
  9. if ( nullSingleton == nil ) {
  10. nullSingleton = _m(self, "alloc");
  11. }
  12. return nullSingleton;
  13. END_OBJC_CLASS_METHOD()
  14.  
  15. BEGIN_OBJC_CLASS_METHODS()
  16. OBJC_CLASS_METHOD_NAMED(nullRet, "null")
  17. END_OBJC_CLASS_METHODS()
  18.  
  19. BEGIN_OBJC_INSTANCE_METHODS()
  20. END_OBJC_INSTANCE_METHODS()
  21. END_DEFINE_OBJC_CLASS_IMPL()
  22.  
  23. AUTO_REGISTER_OBJC_CLASS(NSNull)
Add Comment
Please, Sign In to add comment