Is it possible to find if a package available from a macro

Hello everyone.

I am having a following setup:
My program compiles certain files (say Header.hpp, Header.cpp) only when a dependency is found.

If in my my_macro.C I do
#include “Header.hpp”

Then in the case, when a Header.hpp, Header.cpp are not compiled (the dependency is not found), the macro crashes.

Is it possible to detect from a macro, whether the dependency is found? So that I can put
#include “Header.hpp” in a condition

Hi Starichok,

This is not really a ROOT related question. Perhaps preprocessor macros can be of help.


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.