interface
| 1085 | |
| 1086 | // interface |
| 1087 | const char *asCModule::GetGlobalVarDeclaration(asUINT index, bool includeNamespace) const |
| 1088 | { |
| 1089 | const asCGlobalProperty *prop = m_scriptGlobals.Get(index); |
| 1090 | if (!prop) return 0; |
| 1091 | |
| 1092 | asCString *tempString = &asCThreadManager::GetLocalData()->string; |
| 1093 | *tempString = prop->type.Format(m_defaultNamespace); |
| 1094 | *tempString += " "; |
| 1095 | if( includeNamespace && prop->nameSpace->name != "" ) |
| 1096 | *tempString += prop->nameSpace->name + "::"; |
| 1097 | *tempString += prop->name; |
| 1098 | |
| 1099 | return tempString->AddressOf(); |
| 1100 | } |
| 1101 | |
| 1102 | // interface |
| 1103 | int asCModule::GetGlobalVar(asUINT index, const char **out_name, const char **out_nameSpace, int *out_typeId, bool *out_isConst) const |