--- linuxsampler/trunk/src/scriptvm/ScriptVM.cpp 2017/07/15 12:02:21 3310 +++ linuxsampler/trunk/src/scriptvm/ScriptVM.cpp 2017/07/15 16:24:59 3311 @@ -293,6 +293,16 @@ return NULL; } + bool ScriptVM::isFunctionDisabled(VMFunction* fn, VMParserContext* ctx) { + ParserContext* parserCtx = dynamic_cast(ctx); + if (!parserCtx) return false; + + if (fn == m_fnMessage && parserCtx->userPreprocessorConditions.count("NKSP_NO_MESSAGE")) + return true; + + return false; + } + std::map ScriptVM::builtInIntVariables() { return std::map(); }