Technical data

LibSystemInitializeCustomCode
4
-59
LibSystemInitializeCustomCode
Purpose
Places code at the top or bottom of a system’s initialize function
Syntax
%<LibSystemInitializeCustomCode(buffer, location)>
Arguments
buffer
Buffer to append to internal cache buffer.
location
"header"
(place at top of function).
"trailer"
(place at bottom of function).
Description
Use this function to place code at the top or bottom of a system’s initialize
function by specifying
"header"
or
"trailer"
, respectively. Note that enable
systems that are not configured to reset on enable, get inlined into
MdlStart
.
For this case, the system’s custom code is found in
MdlStart
above and below
the enable system’s initialization code.
Attempting to add initialization code to the root system will generate an error.
For this case, use library function
LibMdlStartFcnCustomCode
.
Each call to this function appends your buffer to the internal cache buffer.