🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Forcing stack calling conversion in Watcom C++

Started by
-1 comments, last by FlyFire 24 years, 10 months ago
I'm compiling my code using register calling conversion (-5r switch - parameters passed thru registers) for generation faster and smaller code and i need to force parameters to be passed thru stack for some my own and some system functions. How i can do this?
I found a way to do this using __cdecl directive. For example, i'm declaring my function like that:
void* __cdecl map_real_pointer(word,word);

But how i can do this with system functions and functions placed in other modules?

FlyFire/CodeX
http://codexorg.webjump.com

This topic is closed to new replies.

Advertisement