|Home > LISA+ Protocols > LISA+ protocol includes section|
includes section includes C/C++ type declarations and constants from external C/C++ header files. It is optional, and sits inside the protocol definition.
The contents and semantics of this includes section are the same as for the includes section
of components. It usually contains a list of preprocessor
#include statements do not expand into the LISA+ code. The
#include statements associate with the protocol definition and you can use
the types declared in the included header files in the protocol definition.
The scope of the declarations made directly or indirectly in the
section can extend beyond the protocol definition that contains the
section. The scope can span all LISA+ files of a subsystem, including all other component and
protocol definitions, but is only guaranteed to span the protocol definition itself.