1 # Summaries for common ObjC types that require Python scripting 2 # to be generated fit into this file 3 4 def BOOL_SummaryProvider (valobj,dict): 5 if not (valobj.IsValid()): 6 return "<invalid>" 7 if valobj.GetValueAsUnsigned() == 0: 8 return "NO" 9 else: 10 return "YES" 11 12 def BOOLRef_SummaryProvider (valobj, dict): 13 return BOOL_SummaryProvider (valobj.GetChildAtIndex(0),dict) 14 15 def BOOLPtr_SummaryProvider (valobj,dict): 16 return BOOL_SummaryProvider (valobj.Dereference(),dict) 17