From 9fe958000e5cd9aa0c46bf16b465ba195a8159e6 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 5 Jul 2010 16:51:52 +0000 Subject: [PATCH] Temporary code in if converted to assert. --- ObjectiveC/Library.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/ObjectiveC/Library.mm b/ObjectiveC/Library.mm index 30ed769..e10bf4b 100644 --- a/ObjectiveC/Library.mm +++ b/ObjectiveC/Library.mm @@ -131,6 +131,7 @@ #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; \ -- 2.45.2