| 521 | } |
| 522 | |
| 523 | int CtrlrLuaMethodManager::callWithRet(CtrlrLuaMethod *o, CtrlrModulator *param1, const int param2) |
| 524 | { |
| 525 | const ScopedLock sl(methodManagerCriticalSection); |
| 526 | |
| 527 | LUA_DEBUG |
| 528 | |
| 529 | if (isLuaDisabled()) |
| 530 | return (true); |
| 531 | |
| 532 | try |
| 533 | { |
| 534 | if (o->isValid()) |
| 535 | { |
| 536 | return (luabind::call_function<int>(o->getObject().getObject(), param1, param2)); |
| 537 | } |
| 538 | } |
| 539 | CATCH_METHOD_EXCEPTION |
| 540 | |
| 541 | return (param2); |
| 542 | } |
| 543 | |
| 544 | int CtrlrLuaMethodManager::callWithRet(CtrlrLuaMethod *o, CtrlrModulator *param1, const CtrlrMidiMessage ¶m2, const int param3) |
| 545 | { |
no test coverage detected