The MASM Forum Archive 2004 to 2012

Project Support Forums => IDE Development and Support => Easy Code => Topic started by: devilhorse on September 21, 2008, 09:48:41 PM

Title: VARARG ERROR ONLY IN EASYCODE
Post by: devilhorse on September 21, 2008, 09:48:41 PM
Get the following error message when using EasyCode when compiling the following code.

ECExterns.inc(46) : error A2131: VARARG parameter requires C calling convention

No error when using Radasm or Winasm. Anyone know why?

################### HERE IS THE CODE

addup3 Proto d:Word, :VarArg

.Code

addup3 Proc C argcount:Word, arg1:VarArg
sub ax, ax ; Clear work register
sub si, si

.WHILE argcount > 0 ; Argcount has number of arguments
Add Ax, arg1[Si] ; Arg1 has the first argument
dec argcount ; Point to next argument
inc si
inc si
.ENDW

ret ; Total is in AX
addup3 ENDP
:'(
Title: Re: VARARG ERROR ONLY IN EASYCODE
Post by: Ramon Sala on September 21, 2008, 10:32:31 PM
Hi DevilHorse,

I will see what happens with this error in order to fix it. Thanks and sorry for the inconveniences.

Regards,

Ramon
Title: Re: VARARG ERROR ONLY IN EASYCODE
Post by: Ramon Sala on September 21, 2008, 11:18:47 PM
Hi,

The VarArg error has been fixed. It will be working fine in next Easy Code version (coming soon).

Thanks,

Ramon
Title: Re: VARARG ERROR ONLY IN EASYCODE
Post by: Ramon Sala on September 30, 2008, 08:45:29 PM
Hi,

A new version of Easy Code solving the VarArg bug has just been released. You can download it at this forum.

Thanks,

Ramon