You need to read the programming manual.
Some excellent examples are provided.
but briefly, if you are abstracting functionality to single source files you wish to avoid duplication on insert calls. so you can define conditions which are checked by the compile source preprocessor.
There are concepts, sound concepts, for program construction which you need to gain familiarity with.
A forum like this will give you simplistic, and possibly erroneous answers. Read the book.