The MASM Forum

General => The Campus => Topic started by: mabdelouahab on December 30, 2015, 06:55:40 AM

Title: calling conventions
Post by: mabdelouahab on December 30, 2015, 06:55:40 AM
Happy New Year Everyone   :biggrin:
How can I make a TYPEDEF PROTO for following calling conventions :
QuoteCC_FASTCALL               
CC_CDECL                   
CC_MSCPASCAL               
CC_PASCAL                   
CC_MACPASCAL               
CC_STDCALL                 
CC_FPFASTCALL               
CC_SYSCALL                 
CC_MPWCDECL                 
CC_MPWPASCAL                 

I know STDCALL,CDECL,PASCAL ,SYSCALL

  MyFuncTPROTO TYPEDEF PROTO stdcall
  MyFuncTPROTO TYPEDEF PROTO c
  MyFuncTPROTO TYPEDEF PROTO pascal
  MyFuncTPROTO TYPEDEF PROTO syscall


Title: Re: calling conventions
Post by: Adamanteus on December 30, 2015, 10:52:51 AM
 That's depends of what langtype supports itself assembler, so it you need special types of proto langtype, you could use CALL and ifidni conditions, comparing strings of langtype in some macro.
Title: Re: calling conventions
Post by: K_F on December 30, 2015, 06:23:20 PM
Quote
Happy New Year Everyone   :biggrin:
You started celebrating already ??
:biggrin: