MCPcopy Create free account
hub / github.com/anjo76/angelscript / SendToCallback

Method SendToCallback

sdk/angelscript/source/as_outputbuffer.cpp:87–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87void asCOutputBuffer::SendToCallback(asCScriptEngine *engine, asSSystemFunctionInterface *func, void *obj)
88{
89 for( asUINT n = 0; n < messages.GetLength(); n++ )
90 {
91 asSMessageInfo msg;
92 msg.section = messages[n]->section.AddressOf();
93 msg.row = messages[n]->row;
94 msg.col = messages[n]->col;
95 msg.type = messages[n]->type;
96 msg.message = messages[n]->msg.AddressOf();
97
98 if( func->callConv < ICC_THISCALL )
99 engine->CallGlobalFunction(&msg, obj, func, 0);
100 else
101 engine->CallObjectMethod(obj, &msg, func, 0);
102 }
103 Clear();
104}
105
106END_AS_NAMESPACE
107

Callers 1

Calls 4

CallGlobalFunctionMethod · 0.80
CallObjectMethodMethod · 0.80
GetLengthMethod · 0.45
AddressOfMethod · 0.45

Tested by

no test coverage detected