2012-02-01 01:01:51 +08:00
|
|
|
# Summaries for common ObjC types that require Python scripting
|
|
|
|
# to be generated fit into this file
|
|
|
|
|
2012-07-14 02:55:41 +08:00
|
|
|
|
|
|
|
def BOOL_SummaryProvider(valobj, dict):
|
|
|
|
if not (valobj.IsValid()):
|
|
|
|
return "<invalid>"
|
|
|
|
if valobj.GetValueAsUnsigned() == 0:
|
2012-02-01 01:01:51 +08:00
|
|
|
return "NO"
|
2016-09-07 04:57:50 +08:00
|
|
|
else:
|
2012-02-01 01:01:51 +08:00
|
|
|
return "YES"
|
2012-07-14 02:55:41 +08:00
|
|
|
|
2016-09-07 04:57:50 +08:00
|
|
|
|
2012-02-01 01:01:51 +08:00
|
|
|
def BOOLRef_SummaryProvider(valobj, dict):
|
2012-07-14 02:55:41 +08:00
|
|
|
return BOOL_SummaryProvider(valobj.GetChildAtIndex(0), dict)
|
2016-09-07 04:57:50 +08:00
|
|
|
|
|
|
|
|
2012-07-14 02:55:41 +08:00
|
|
|
def BOOLPtr_SummaryProvider(valobj, dict):
|
|
|
|
return BOOL_SummaryProvider(valobj.Dereference(), dict)
|