Returns literal representation of the type value
| 26 | |
| 27 | // Returns literal representation of the type value |
| 28 | inline const char* ScriptAnyTypeToString(ScriptAnyType type) |
| 29 | { |
| 30 | switch (type) |
| 31 | { |
| 32 | case ANY_ANY: |
| 33 | return "Any"; |
| 34 | case ANY_TNIL: |
| 35 | return "Null"; |
| 36 | case ANY_TBOOLEAN: |
| 37 | return "Boolean"; |
| 38 | case ANY_TSTRING: |
| 39 | return "String"; |
| 40 | case ANY_TNUMBER: |
| 41 | return "Number"; |
| 42 | case ANY_TFUNCTION: |
| 43 | return "Function"; |
| 44 | case ANY_TTABLE: |
| 45 | return "Table"; |
| 46 | case ANY_TUSERDATA: |
| 47 | return "UserData"; |
| 48 | case ANY_THANDLE: |
| 49 | return "Pointer"; |
| 50 | case ANY_TVECTOR: |
| 51 | return "Vec3"; |
| 52 | default: |
| 53 | return "Unknown"; |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | // Returns literal representation of the type value |
| 58 | inline const char* ScriptVarTypeAsCStr(ScriptVarType t) |