"Real life" *.inc entry is to execute macro routine "Entry^HS.Local.VA.Util.Log(%arr,,"D")" if Global ^GlFSL("Debug") is >0 by calling from a classmethod as $$$TestIf(arr) - no return value is required.
Initial attempt was by defining in *inc file as:
#define TestIf(%arr) if (^GlFSL("Debug")>0) {Entry^HS.Local.VA.Util.Log(%arr,,"D")}
Note: Without "IF", definition as "#define TestIf(%arr) Entry^HS.Local.VA.Util.Log(%arr,,"D")" works fine
Upon failures, macro was step-by-step simplified trying to figure out compilation issue -so, "set a = $$$TestIf(5)" is just oversimplified line.
Thank you
Real life" code works as well - thank you very much!
if you have time, please, look into similar issue with "IF" in *inc file https://community.intersystems.com/post/failure-compile-inc-simple-if-st...
Don't pay attention on proposed replacement $SELECT option - I really want to have "clean" IF statement in *inc file.
Thank you.
WORKS!!! Thank you very much