MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / fieldStorageFromType

Function fieldStorageFromType

src/hx/cppia/CppiaVars.cpp:19–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17
18
19FieldStorage fieldStorageFromType(TypeData *inType)
20{
21 if (!inType)
22 return fsObject;
23
24 switch(inType->expressionType)
25 {
26 case etInt:
27 if (inType->name==HX_CSTRING("Bool"))
28 return fsBool;
29 return fsInt;
30 case etFloat: return fsFloat;
31 case etString: return fsString;
32 case etObject: return fsObject;
33 default:
34 ;
35 }
36 return fsUnknown;
37}
38
39
40// --- CppiaVar ----

Callers 2

linkVarTypesMethod · 0.85
linkMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected