Add a sample for the debugger API

This commit is contained in:
Clement Rouault
2016-07-08 11:37:49 +02:00
parent 9a980d87b3
commit fb9cd75f40
6 changed files with 93 additions and 18 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
"""utils fonctions non windows-related"""
import ctypes
import _ctypes
from windows.generated_def import Flag
def fixedpropety(f):
@@ -40,7 +41,7 @@ def print_ctypes_struct(struct, name="", ident=0, hexa=False):
if isinstance(value, basestring):
value = repr(value)
if hexa:
if hexa and not isinstance(value, Flag):
try:
print("{0} -> {1}".format(name, hex(value)))
return