]> git.saurik.com Git - cycript.git/commitdiff
Temporary code in if converted to assert.
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 5 Jul 2010 16:51:52 +0000 (16:51 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 5 Jul 2010 16:51:52 +0000 (16:51 +0000)
ObjectiveC/Library.mm

index 30ed769cb2718a733e8391e9a1f45040eabb189b..e10bf4b01e896111f53a1b3d4ff4a63d376c8c5d 100644 (file)
 
 #define object_getInstanceVariable(object, name, value) ({ \
     objc_ivar *ivar(class_getInstanceVariable(object_getClass(object), name)); \
+    _assert(value != NULL); \
     if (ivar != NULL) \
         GSObjCGetVariable(object, ivar_getOffset(ivar), sizeof(void *), value); \
     ivar; \