| 84 | } |
| 85 | } |
| 86 | else if( typeId & asTYPEID_SCRIPTOBJECT ) |
| 87 | { |
| 88 | // Dereference handles, so we can see what it points to |
| 89 | if( typeId & asTYPEID_OBJHANDLE ) |
| 90 | value = *(void**)value; |
| 91 | |
| 92 | asIScriptObject *obj = (asIScriptObject *)value; |
| 93 | |
| 94 | // Print the address of the object |
| 95 | s << "{" << obj << "}"; |
| 96 | |
| 97 | // Print the members |
| 98 | if( obj && expandMembers > 0 ) |
| 99 | { |
| 100 | asITypeInfo *type = obj->GetObjectType(); |
| 101 | for( asUINT n = 0; n < obj->GetPropertyCount(); n++ ) |
| 102 | { |
| 103 | if( n == 0 ) |
| 104 | s << " "; |
| 105 | else |
| 106 | s << ", "; |
| 107 | |
| 108 | s << type->GetPropertyDeclaration(n) << " = " << ToString(obj->GetAddressOfProperty(n), obj->GetPropertyTypeId(n), expandMembers - 1, type->GetEngine()); |
| 109 | } |
| 110 | } |
| 111 | } |
| 112 | else |
| 113 | { |
| 114 | // Dereference handles, so we can see what it points to |
no test coverage detected