Re: ver 4.0 calling convention information ?
- Posted by jimcbrown (admin) May 26, 2009
- 843 views
Thanks MATT and JIM:
If I am INSIDE a EUPHORIA FUNCTION I need to know how
that routine was called ( STD or CDECL ) so I can protect
the STACK condition when I return from a assembler routine
that I am calling from inside of the EUPHORIA FUNCTION.
I keep hearing people say that EUPHORIA NOW uses the standard
calling convention. When EUPHORIA was 3.11 all these things
worked without a problem. ( yes I am using ENTER and LEAVE code. )
Something is different ?
How are you currently calling the assembler routine, and what calling convention is the assembler routine using?
If you call the assembler routine with call(), then you should not need to change anything. However, if you use c_func() or c_proc() then it may be a different story (in which case I suggest the assembly routine be changed to C_DECL calling convention).