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

Method call

Source/Lua/Methods/CtrlrLuaMethodManagerCalls.cpp:70–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68#define LUA_DEBUG if (getDebug() && o) { _INF("CtrlrLuaMethodManager::call " + o->getName()); }
69
70const bool CtrlrLuaMethodManager::call(CtrlrLuaMethod *o)
71{
72 const ScopedLock sl(methodManagerCriticalSection);
73
74 LUA_DEBUG
75
76 if (isLuaDisabled())
77 return (true);
78
79 try
80 {
81 if (o->isValid())
82 luabind::call_function<void>(o->getObject().getObject());
83 }
84 CATCH_METHOD_EXCEPTION
85
86 return (true);
87}
88
89const bool CtrlrLuaMethodManager::call(CtrlrLuaMethod *o, CtrlrModulator *param1, const int param2)
90{

Callers 15

setGlobalVariableMethod · 0.45
mouseDoubleClickMethod · 0.45
mouseDownMethod · 0.45
mouseMoveMethod · 0.45
mouseDragMethod · 0.45
paintMethod · 0.45
keyPressedMethod · 0.45
keyStateChangedMethod · 0.45
paintOverChildrenMethod · 0.45
resizedMethod · 0.45
mouseMoveMethod · 0.45
mouseDownMethod · 0.45

Calls 5

isValidMethod · 0.45
getObjectMethod · 0.45
getAddressMethod · 0.45
toUTF8Method · 0.45
is_validMethod · 0.45

Tested by

no test coverage detected