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