1# This file is generated by objective.metadata 2# 3# Last update: Wed Sep 19 17:33:23 2012 4 5import objc, sys 6 7if sys.maxsize > 2 ** 32: 8 def sel32or64(a, b): return b 9else: 10 def sel32or64(a, b): return a 11if sys.byteorder == 'little': 12 def littleOrBig(a, b): return a 13else: 14 def littleOrBig(a, b): return b 15 16misc = { 17} 18constants = '''$NSStackTraceKey$NSUncaughtRuntimeErrorException$NSUncaughtSystemExceptionException$''' 19enums = '''$NSHandleOtherExceptionMask@512$NSHandleTopLevelExceptionMask@128$NSHandleUncaughtExceptionMask@2$NSHandleUncaughtRuntimeErrorMask@32$NSHandleUncaughtSystemExceptionMask@8$NSHangOnOtherExceptionMask@16$NSHangOnTopLevelExceptionMask@8$NSHangOnUncaughtExceptionMask@1$NSHangOnUncaughtRuntimeErrorMask@4$NSHangOnUncaughtSystemExceptionMask@2$NSLogOtherExceptionMask@256$NSLogTopLevelExceptionMask@64$NSLogUncaughtExceptionMask@1$NSLogUncaughtRuntimeErrorMask@16$NSLogUncaughtSystemExceptionMask@4$''' 20misc.update({}) 21functions={'NSExceptionHandlerResume': (b'v',)} 22r = objc.registerMetaDataForSelector 23objc._updatingMetadata(True) 24try: 25 r(b'NSObject', b'exceptionHandler:shouldHandleException:mask:', {'retval': {'type': 'Z'}}) 26 r(b'NSObject', b'exceptionHandler:shouldLogException:mask:', {'retval': {'type': 'Z'}}) 27finally: 28 objc._updatingMetadata(False) 29r = objc.registerMetaDataForSelector 30objc._updatingMetadata(True) 31try: 32 r(b'NSObject', b'exceptionHandler:shouldHandleException:mask:', {'retval': {'type': 'Z'}, 'arguments': {2: {'type': b'@'}, 3: {'type': b'@'}, 4: {'type': sel32or64(b'I', b'Q')}}}) 33 r(b'NSObject', b'exceptionHandler:shouldLogException:mask:', {'retval': {'type': 'Z'}, 'arguments': {2: {'type': b'@'}, 3: {'type': b'@'}, 4: {'type': sel32or64(b'I', b'Q')}}}) 34finally: 35 objc._updatingMetadata(False) 36protocols={'NSExceptionHandlerDelegate': objc.informal_protocol('NSExceptionHandlerDelegate', [objc.selector(None, b'exceptionHandler:shouldLogException:mask:', sel32or64(b'Z@:@@I', b'Z@:@@Q'), isRequired=False), objc.selector(None, b'exceptionHandler:shouldHandleException:mask:', sel32or64(b'Z@:@@I', b'Z@:@@Q'), isRequired=False)])} 37expressions = {'NSHangOnEveryExceptionMask': '(NSHangOnUncaughtExceptionMask|NSHangOnUncaughtSystemExceptionMask|NSHangOnUncaughtRuntimeErrorMask|NSHangOnTopLevelExceptionMask|NSHangOnOtherExceptionMask)', 'NSLogAndHandleEveryExceptionMask': '(NSLogUncaughtExceptionMask|NSLogUncaughtSystemExceptionMask|NSLogUncaughtRuntimeErrorMask|NSHandleUncaughtExceptionMask|NSHandleUncaughtSystemExceptionMask|NSHandleUncaughtRuntimeErrorMask|NSLogTopLevelExceptionMask|NSHandleTopLevelExceptionMask|NSLogOtherExceptionMask|NSHandleOtherExceptionMask)'} 38 39# END OF FILE 40