Support Forum

Macro Question: header files?

User
LayoutEditorFull
Tuesday 13th August 2019
I’ve been using the macro function of layout editor extensively. I don’t see any examples on the help page of keeping a library of functions in an external file that all my macros can share. Currently, I’m copying my common functions into multiple macros and it’s difficult to keep them all in sync. Is there something similar to an .h file I can keep all my functions in?
Jürgen
LayoutEditorFull
Tuesday 13th August 2019
there is a compiler command *include* that you can use to include library function files into different macros. It has to used like: ```c++ #include "filename.layout" ``` The difference to header file (\*.h) is that the included file contain the complete implementation of the function and not only its declaration as in header files.