More work for lv2 export, test with chow chorus

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2021-12-08 15:04:06 +00:00
parent 1304a16f73
commit 866fd16b10
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
4 changed files with 71 additions and 27 deletions

View file

@ -15,8 +15,11 @@
* For a full copy of the GNU General Public License see the LICENSE file.
*/
#define PRIVATE
#include <common.hpp>
#undef PRIVATE
#include <rack.hpp>
#include <context.hpp>
using namespace rack;
@ -24,21 +27,6 @@ namespace rack {
namespace settings {
bool cpuMeter = false;
}
Context::~Context() {
}
static thread_local Context* threadContext;
Context* contextGet() {
DISTRHO_SAFE_ASSERT(threadContext != nullptr);
return threadContext;
}
// Apple's clang incorrectly compiles this function when -O2 or higher is enabled.
#ifdef ARCH_MAC
__attribute__((optnone))
#endif
void contextSet(Context* const context) {
// DISTRHO_SAFE_ASSERT(threadContext == nullptr);
threadContext = context;
}
Exception::Exception(const char* format, ...)
{
va_list args;