Skip to main content
gamedev.net
🔒 Locked

__fastcall???

Started by Spartacus 1 reply 350+ views
Original Post
Spartacus
Spartacus
Can someone tell me what happens when a function is defined as __fastcall? What are the differences between a __fastcall defined function and a function that is not defined as __fastcall? Thanks, -René
Real programmers don't document, if it was hard to write it should be hard to understand
Gorg
Gorg
It simply tells the compiler to pass the arguments of the fonction by the register instead of the stack if possible.
Alan Kemp
Alan Kemp
However note that Visual C++ takes no notice of it :-)

In other compilers you must remember that you can only __fastcall a function if there are fewer than three parameters.

Also remember that any function in a class has one parameter more than it looks like (''this'' is passed a parameter to member functions).

Alan
"There will come a time when you believe everything is finished. That will be the beginning." -Louis L'Amour

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.