See the attached code. "ticdely" is defined but avra in version 1.3.0 won't detect that, the .ifndef directive is true and show me the .message. The same code on avra 1.2.3 works well.
>>>>>> avra 1.3.0 <<<<<<<<<<<
boetti@dan:/data0/ramdisk/CF_TEST$ /opt/cf/bin/avra ticdel.asm
AVRA: advanced AVR macro assembler Version 1.3.0 Build 1 (8 May 2010)
AVRA is an open source assembler ............
Pass 1...
Pass 2...
ticdel.asm(18) : WARN: Kein ticdelay fuer FM Blink definiert <<<<<<<<<<<<<<< Should not be showed
done
Used memory blocks:
Code : Start = 0x009F, End = 0x00A0, Length = 0x0002
Data : Start = 0x0069, End = 0x0069, Length = 0x0001
Assembly complete with no errors.
Segment usage:
Code : 2 words (4 bytes)
Data : 1 bytes
EEPROM : 0 bytes
>>>>>>>>>>> The same code asembled by Ver. 1.2.3 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
boetti@dan:/data0/ramdisk/CF_TEST$ /usr/bin/avra ticdel.asm
AVRA: advanced AVR macro assembler Version 1.2.3 Build 1 (15. November 2007)
Copyright (C) 1998-2007. Check out README file for more info
AVRA is an open source assembler ............
Pass 1...
Pass 2...
done
Used memory blocks:
Code : Start = 0x009F, End = 0x00A0, Length = 0x0002
Data : Start = 0x0069, End = 0x0069, Length = 0x0001
Assembly complete with no errors.
Segment usage:
Code : 2 words (4 bytes)
Data : 1 bytes
EEPROM : 0 bytes
boetti@dan:/data0/ramdisk/CF_TEST$
testcode
The small change in the attached patch should fix the problem.
Edit: actually, this has already been fixed in branch "bug3044541-ifndef", see https://sourceforge.net/p/avra/code/ci/bug3044541-ifndef/tree/
Last edit: Carlo V. 2013-10-12