Technical data

LibSourceFileCustomCode
4
-55
LibSourceFileCustomCode
Purpose
Places code at the top of the model’s source file
Syntax
%<LibSourceFileCustomCode(buffer, location)>
Arguments
buffer
Buffer to append to internal cache buffer.
location
"header"
(place at top of file).
Description
Use this function to place code at the top of the model’s source file by specifying
"header"
. Custom code is not allowed at the bottom of
model.c
since placing it
at the top of
model.reg
has the same effect (
model.c
includes
model.reg
as its
last statement).
Be careful placing code in
model.c
if file splitting is an issue. When code is
needed in each split file, place it in
model.h
instead of
model.c
.
Each call to this function appends your buffer to the internal cache buffer.