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

◆ add_compile_flag()

MAYAFLUX_HOST_API Result< void > MayaFlux::Host::add_compile_flag ( const std::string & flag)

Add a compile flag to the JIT.

Flags cannot change a session that has started, so after start_session this is refused.

Parameters
flagCompiler flag, e.g. "-DMY_DEFINE".
Returns
Success, or the reason it was refused.

Definition at line 83 of file Dependencies.cpp.

84{
85 if (flag.empty()) {
86 return std::unexpected(Failure { "empty compile flag", {} });
87 }
89}
Result< void > apply_or_stage(Stage stage, std::string value)
Apply an item to the running session, or stage it until start_session.
Definition Session.cpp:129
Why a Host call was refused, with every path that was checked.
Definition Session.hpp:17

References MayaFlux::Host::detail::apply_or_stage(), and MayaFlux::Host::detail::CompileFlag.

Here is the call graph for this function: