STRET - preparing for functions that return a structure.

Usage:

stret   SIZE

Where:

SIZE
is the size (in words) of the structure that will be returned.

Description:

"stret" is called just before calling a function that returns a structure. The purpose of the macro is to make sure that the highwater mark of the current function's stack frame takes into account the size of the structure (since the structure will be returned on the stack). Essentially, "stret" just sets the STACK origin to the point it will reach when the structure is returned, then sets the origin back to its original point. This adjusts the highwater mark (if necessary).

Copyright © 1996, Thinkage Ltd.