Macro Functions

A macro function is declared in a format that looks like a C function. White space is ignored. Function and variable names are not case sensitive.

Macros have the form:

macro my_macro()
{
    /* comments */
    .. statements..   // comments
}

 

Macro functions can have parameters and can call other macros. You can return a value from a macro by using “return n” where n is the return value. For example:

macro add2(n)
{
    return n + 2
}