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

Method callWithRetString

Source/Lua/Methods/CtrlrLuaMethodManagerCalls.cpp:630–649  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

628}
629
630String CtrlrLuaMethodManager::callWithRetString(CtrlrLuaMethod *o, CtrlrCustomComponent *param1)
631{
632 const ScopedLock sl(methodManagerCriticalSection);
633
634 LUA_DEBUG
635
636 if (isLuaDisabled())
637 return ("");
638
639 try
640 {
641 if (o->isValid())
642 {
643 return (luabind::call_function<String>(o->getObject().getObject(), param1));
644 }
645 }
646 CATCH_METHOD_EXCEPTION_STR
647
648 return ("");
649}
650
651const bool CtrlrLuaMethodManager::call(CtrlrLuaMethod *o, CtrlrCustomComponent *param1, const KeyPress &param2, Component *param3)
652{

Callers 1

getComponentTextMethod · 0.80

Calls 2

isValidMethod · 0.45
getObjectMethod · 0.45

Tested by

no test coverage detected