MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ lila_add_compile_flag()

MAYAFLUX_HOST_API void MayaFlux::Host::Live::lila_add_compile_flag ( const std::string &  flag)

Add a compile flag to the Lila interpreter.

Must be called before start_lila(). Flags registered after initialization have no effect on the compiler state already built by initialize().

Parameters
flagCompiler flag string, e.g. "-DMY_DEFINE" or "-I/some/path".

Definition at line 120 of file Runtime.cpp.

121{
122 std::lock_guard<std::mutex> guard(g_mutex);
123 if (g_instance) {
124 g_instance->add_compile_flag(flag);
125 return;
126 }
127 g_pending_compile_flags.push_back(flag);
128}