don't forget that in your sample you are passing value as integer, Ziron does not do type checking on functions so you need to pass it as a real4 (single)
myProc(0.0, 0.0, -150.0);
also if you at some point need to pass real8 or real10, they would need variables created since they are passed by pointer.
I may add type checking for floating values so we can easier get around this, but internally it technically would just be the same thing as above just without the extra var, it would still use the stack since it would pass it by ref.
For Ziron 2 i will come up with some better methods to overcome this. :)
btw i would suggest for performance reasons in your library to change your doubles to be double* this way you pass a pointer and can save size on the stack and make things quicker.
i was thinking , make a macro or a plugin that will divide the extended value into 2 Dword
then push them in the stack.
something like that
inline procedure Dpl(extended x )
{
divide x into X1 and X2
push X2
push X1
}
then later
procedure myProc(double* mydw) {
//do something
}
double d = 5.0;
myProc(Dpl(5.0));