Dynamic parameterstack
Posted: Fri Jan 22, 2010 9:55 am
Dynamic parameter stack such as C.
Behind the last parameter still another zero parameter add over in the Procedure the latter to recognize.
GT 
Behind the last parameter still another zero parameter add over in the Procedure the latter to recognize.
Code: Select all
Procedure MyFunction( Para1.i, *Args ... ) ; *Args ; Pointer to parameterstack
*value = PeekI(*args) ; get pointer to value
While *value
; ...
*args + SizeOf(Integer) ; next parameter
*value = PeekI(*args) ; get pointer to value
Wend
EndProcedure
