13
0

Lua GUI Instance update: prepare for template scripts

This commit is contained in:
Robin Gareus 2017-08-09 04:08:43 +02:00
parent e4cb6e1894
commit c37cdf548d
2 changed files with 6 additions and 2 deletions

View File

@ -920,7 +920,9 @@ using namespace ARDOUR_UI_UTILS;
using namespace PBD;
using namespace std;
static void _lua_print (std::string s) {
void
LuaInstance::_lua_print (std::string s)
{
#ifndef NDEBUG
std::cout << "LuaInstance: " << s << "\n";
#endif
@ -1694,7 +1696,7 @@ LuaCallback::get_state (void)
void
LuaCallback::init (void)
{
lua.Print.connect (&_lua_print);
lua.Print.connect (&LuaInstance::_lua_print);
lua.sandbox (false);
lua.do_command (

View File

@ -91,6 +91,8 @@ public:
static void render_action_icon (cairo_t* cr, int w, int h, uint32_t c, void* i);
static void _lua_print (std::string s);
void set_session (ARDOUR::Session* s);
int set_state (const XMLNode&);