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
:'(
Hi DevilHorse,
I will see what happens with this error in order to fix it. Thanks and sorry for the inconveniences.
Regards,
Ramon
Hi,
The VarArg error has been fixed. It will be working fine in next Easy Code version (coming soon).
Thanks,
Ramon
Hi,
A new version of Easy Code solving the VarArg bug has just been released. You can download it at this forum.
Thanks,
Ramon