Created
October 1, 2013 10:56
-
-
Save Lmd64-zz/6776820 to your computer and use it in GitHub Desktop.
AssertMacros: queueEntry temporary fix
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
#warning Temporary hack to remove the flood of assertmacro log messages. | |
typedef int (*PYStdWriter)(void *, const char *, int); | |
static PYStdWriter _oldStdWrite; | |
int __pyStderrWrite(void *inFD, const char *buffer, int size){ | |
if ( strncmp(buffer, "AssertMacros:", 13) == 0 ) { | |
return 0; | |
} | |
return _oldStdWrite(inFD, buffer, size); | |
} | |
int main(int argc, char *argv[]){ | |
_oldStdWrite = stderr->_write; | |
stderr->_write = __pyStderrWrite; | |
@autoreleasepool { | |
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment