vandamm / cjass

C-style JASS preprocessor for Warcraft III
http://cjass.xgm.guru/
1 stars 1 forks source link

Bugs with processing vJass textmacro #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Post all bugs with texmacros processing there.

    //! textmacro ARGB_CHAR takes int, chr
        set i=0
        loop
            exitwhen i==16
            set i2cc[$int$*16+i]="$chr$"+i2cc[$int$*16+i]
            set i2cc[i*16+$int$]=i2cc[i*16+$int$]+"$chr$"
            set i=i+1
        endloop
    //! endtextmacro
    //! runtextmacro ARGB_CHAR("0","0")
// --->
loop
exitwhen       i==16
set ARGB___i2cc[0*16+i]="$chr$"+ARGB___i2cc[0*16+i]
set ARGB___i2cc[i*16+0]=ARGB___i2cc[i*16+0]+"$chr$"
set i=i+1
endloop

cJass, unlike vJass do not replace arguments in strings.

Original issue reported on code.google.com by adi...@gmail.com on 7 Aug 2011 at 6:14

GoogleCodeExporter commented 9 years ago
Fixed with new textmacro preprocessing (1.4.2.27)

Original comment by adi...@gmail.com on 8 Aug 2011 at 10:48

GoogleCodeExporter commented 9 years ago
Also need to test it...

Original comment by adi...@gmail.com on 8 Aug 2011 at 10:52