INNER CODE UNIT · Python
typeToStr
gecko0307/dagon · extensions/jolt/genbinding.py:3
def typeToStr(type):
typeSpec = type.type_spec
if typeSpec == 'unsigned':
typeSpec = 'uint'
if typeSpec == 'short int':
typeSpec = 'short'
if typeSpec == 'long long':
typeSpec = 'long'
if typeSpec == 'int8_t':
typeSpec = 'byte'
if typeSpec == 'int16_t':
typeSpec = 'short'
if typeSpec == 'int32_t':
typeSpec = 'int'
if typeSpec == 'int64_t':
typeSpec = 'long'