Tweak files in preparation for Rack update
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
969c3e04ba
commit
5c9f4e802a
5 changed files with 31 additions and 1 deletions
|
@ -17,6 +17,10 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#ifdef PRIVATE
|
||||
# define PRIVATE_WAS_DEFINED
|
||||
#endif
|
||||
|
||||
#include_next "common.hpp"
|
||||
|
||||
// Make binary resources work the same no matter the OS
|
||||
|
@ -29,3 +33,9 @@
|
|||
#define BINARY_START(sym) ((const void*) sym)
|
||||
#define BINARY_END(sym) ((const void*) sym + sym##_len)
|
||||
#define BINARY_SIZE(sym) (sym##_len)
|
||||
|
||||
#if defined(PRIVATE) && !defined(PRIVATE_WAS_DEFINED)
|
||||
# undef PRIVATE
|
||||
#endif
|
||||
|
||||
#undef PRIVATE_WAS_DEFINED
|
||||
|
|
|
@ -68,6 +68,7 @@ struct CardinalPluginModel : CardinalPluginModelHelper
|
|||
tm = dynamic_cast<TModule*>(m);
|
||||
}
|
||||
app::ModuleWidget* const tmw = new TModuleWidget(tm);
|
||||
DISTRHO_SAFE_ASSERT_RETURN(tmw->module == m, nullptr);
|
||||
tmw->setModel(this);
|
||||
return tmw;
|
||||
}
|
||||
|
@ -81,6 +82,7 @@ struct CardinalPluginModel : CardinalPluginModelHelper
|
|||
DISTRHO_SAFE_ASSERT_RETURN(tm != nullptr, nullptr);
|
||||
|
||||
TModuleWidget* const tmw = new TModuleWidget(tm);
|
||||
DISTRHO_SAFE_ASSERT_RETURN(tmw->module == m, nullptr);
|
||||
tmw->setModel(this);
|
||||
|
||||
widgets[m] = tmw;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue