Commits

sdm7g  committed ecc80ef

change MACOSX #ifdefs

  • Participants
  • Parent commits 6e7a07e

Comments (0)

Files changed (2)

File pyobjc/ObjCMethod.m

   
       if (argn < argcount-2)
         {
-#ifdef NOTOSX
+#ifdef MACOSX
+          const char *type = [methinfo getArgumentTypeAtIndex:argn+2];
+#else
           const char *type = [methinfo argumentInfoAtIndex:argn+2].type;
-#else
-          const char *type = [methinfo getArgumentTypeAtIndex:argn+2];
 #endif
           unsigned int size;
           char *buffer;

File pyobjc/objc_support.m

       for (i = 2; i < argcount; i++)
         {
           PyObject *argument;
-#ifdef NOTOSX
+#ifdef MACOSX
+	  const char *argtype = [methinfo getArgumentTypeAtIndex:i];
+#else
 	  const char *argtype = [methinfo argumentInfoAtIndex:i].type;
-#else
-	  const char *argtype = [methinfo getArgumentTypeAtIndex:i];
 #endif
 	  char argbuffer[objc_sizeof_type (argtype)];