| 85 | } |
| 86 | |
| 87 | void 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 | |
| 106 | END_AS_NAMESPACE |
| 107 |
no test coverage detected