MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / callWithRet

Method callWithRet

Source/Lua/Methods/CtrlrLuaMethodManagerCalls.cpp:523–542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

521}
522
523int 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
544int CtrlrLuaMethodManager::callWithRet(CtrlrLuaMethod *o, CtrlrModulator *param1, const CtrlrMidiMessage &param2, const int param3)
545{

Callers 4

mouseDragMethod · 0.80

Calls 3

isValidMethod · 0.45
getObjectMethod · 0.45

Tested by

no test coverage detected