CallFunctionFast() question.

Just starting out? Need help? Post your questions and find answers here.
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

CallFunctionFast() question.

Post by jassing »

When using CallFunctionFast() - what does it do behind the scenes?

Code: Select all

Procedure who(ball.s="")
  Debug "has the "+ball
EndProcedure
*p=@who()
CallFunctionFast(*p)       ; not sending anything, so I expect the default parameter to to used ("").
CallFunctionFast(*p,@"") ; this works, but what if you don't know the default, or the default changes?	
the call is assembled to

Code: Select all

integer r0=PB_CallFunctionFast(p0);
I just assumed, no parameters, it would use the default specified in the parameter definition (ball.s="")
User avatar
idle
Always Here
Always Here
Posts: 6029
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: CallFunctionFast() question.

Post by idle »

use prototypes much better than call function fast
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

Re: CallFunctionFast() question.

Post by jassing »

idle wrote: Mon May 06, 2024 6:21 am use prototypes much better than call function fast

ok, thanks.
Post Reply