More work for lv2 export, test with chow chorus
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
1304a16f73
commit
866fd16b10
4 changed files with 71 additions and 27 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue