MCPcopy Create free account
hub / github.com/MayaPosch/NymphCast / if

Function if

src/server/angelscript/add_on/debugger/debugger.cpp:86–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

ToStringMethod · 0.85

Calls 6

GetAddressOfPropertyMethod · 0.80
GetPropertyTypeIdMethod · 0.80
GetObjectTypeMethod · 0.45
GetPropertyCountMethod · 0.45
GetEngineMethod · 0.45

Tested by

no test coverage detected