|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_HOST_API Result< std::filesystem::path > MayaFlux::Host::add_header | ( | std::string_view | file_name, |
| std::span< const std::filesystem::path > | roots ) |
Include a header in the session.
Each root is tried in the order given, without descending into subdirectories. The first root holding file_name wins, and the header is included by its absolute path. The include search path is not changed. Before start_session the include is staged and evaluated at start.
| file_name | Plain header file name, e.g. "Dust.hpp". |
| roots | Directories to look in, in order. |
Definition at line 46 of file Dependencies.cpp.
References MayaFlux::Platform::acquire_header_root(), eval_file(), MayaFlux::Host::detail::to_failure(), and MayaFlux::Host::Failure::tried.