MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / ctype

Function ctype

codegen/api_shared.py:71–81  ·  view source on GitHub ↗
(thetype)

Source from the content-addressed store, hash-verified

69 return 'Struct'
70
71def ctype(thetype):
72 thetype = thetype.replace('vr::','')
73 if(thetype[0:6] == 'const '):
74 thetype = thetype[6:]
75 if(thetype[0:6] == 'class '): # for C replaces classes by pointers
76 thetype = 'intptr_t'
77 if(thetype == 'ulong'):
78 return 'unsigned long long'
79 if(thetype == 'uint'):
80 return 'unsigned long'
81 return thetype
82
83def striparraysuffix(thetype):
84 if(thetype[len(thetype) - 1] == ']'):

Callers 4

outputfntablesFunction · 0.85
outputfntablefuncsFunction · 0.85
OutputStructFieldsFunction · 0.85
openvr_capi.h.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected