@@ -12,7 +12,12 @@ namespace flamegpu {
1212 */
1313AgentDescription::AgentDescription (std::shared_ptr<const ModelData> _model, AgentData *const data)
1414 : model(_model)
15- , agent(data) { }
15+ , agent(data) {
16+
17+ printf (" %s::%d agent=%p\n " , __FILE__, __LINE__, data);
18+ printf (" %s::%d agent=%p\n " , __FILE__, __LINE__, this ->agent );
19+ printf (" %s::%d agent->functions=%p\n " , __FILE__, __LINE__, &this ->agent ->functions );
20+ }
1621
1722
1823bool AgentDescription::operator ==(const AgentDescription& rhs) const {
@@ -156,7 +161,8 @@ bool AgentDescription::isOutputOnDevice() const {
156161
157162
158163AgentFunctionDescription& AgentDescription::newRTCFunction (const std::string& function_name, const std::string& func_src) {
159- printf (" %s::%d\n " , __FILE__, __LINE__);
164+ printf (" %s::%d agent=%p\n " , __FILE__, __LINE__, this ->agent );
165+ printf (" %s::%d agent->functions=%p\n " , __FILE__, __LINE__, &this ->agent ->functions );
160166 if (agent->functions .find (function_name) == agent->functions .end ()) {
161167 printf (" %s::%d\n " , __FILE__, __LINE__);
162168 // Use Regex to get agent function name, and input/output message type
0 commit comments