From c6387c1ac9c9b5b03bd8ac01d76d7289445aec74 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 10 Oct 2020 01:26:04 +0200 Subject: [PATCH] Split long chain of Lua bindings (fix clang 12 builds) --- libs/ardour/luabindings.cc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/libs/ardour/luabindings.cc b/libs/ardour/luabindings.cc index fe086a3991..d461f6e2ae 100644 --- a/libs/ardour/luabindings.cc +++ b/libs/ardour/luabindings.cc @@ -1497,6 +1497,11 @@ LuaBindings::common (lua_State* L) .deriveWSPtrClass ("InternalReturn") .endClass () + .endNamespace (); // end ARDOUR + + /* take a breath */ + luabridge::getGlobalNamespace (L) + .beginNamespace ("ARDOUR") .beginNamespace ("Plugin") .beginClass ("IOPortDescription") @@ -1760,11 +1765,11 @@ LuaBindings::common (lua_State* L) .beginStdMap > ("RegionMap") .endClass () - // typedef std::list > ProcessorList; + // typedef std::list > ProcessorList .beginStdList > ("ProcessorList") .endClass () - //std::list > PortList; + //std::list > PortList .beginConstStdList > ("PortList") .endClass () @@ -1775,7 +1780,7 @@ LuaBindings::common (lua_State* L) .beginConstStdCPtrList ("LocationList") .endClass () - // std::list > ControlList; + // std::list > ControlList .beginStdList > ("ControlList") .endClass () @@ -1790,7 +1795,7 @@ LuaBindings::common (lua_State* L) .endClass () #if 0 // depends on Evoal:: Note, Beats see note_fixer.h - // typedef Evoral::Note Note; + // typedef Evoral::Note Note // std::set< boost::weak_ptr > .beginStdSet > ("WeakNoteSet") .endClass ()