News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

VARARG ERROR ONLY IN EASYCODE

Started by devilhorse, September 21, 2008, 09:48:41 PM

Previous topic - Next topic

devilhorse

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
:'(

Ramon Sala

Hi DevilHorse,

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

Regards,

Ramon
Greetings from Catalonia

Ramon Sala

Hi,

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

Thanks,

Ramon
Greetings from Catalonia

Ramon Sala

Hi,

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

Thanks,

Ramon
Greetings from Catalonia