| 8652 | } |
| 8653 | |
| 8654 | void ScriptingObjects::ScriptedMacroHandler::sendUpdateMessage(NotificationType n) |
| 8655 | { |
| 8656 | if(updateCallback && n != dontSendNotification) |
| 8657 | { |
| 8658 | auto obj = getMacroDataObject(); |
| 8659 | |
| 8660 | if(n == sendNotificationSync) |
| 8661 | { |
| 8662 | auto r = updateCallback.callSync(&obj, 1); |
| 8663 | |
| 8664 | if (!r.wasOk()) |
| 8665 | reportScriptError(r.getErrorMessage()); |
| 8666 | } |
| 8667 | else |
| 8668 | { |
| 8669 | updateCallback.call1(obj); |
| 8670 | } |
| 8671 | } |
| 8672 | } |
| 8673 | |
| 8674 | void ScriptingObjects::ScriptedMacroHandler::setFromCallbackArg(const var& obj) |
| 8675 | { |
no test coverage detected