Page 1 of 1

[z88dk-dev] new pragma: pragma-export

Posted: Sun Nov 20, 2016 5:29 pm
by alvin
I added a new pragma "pragma export" that works the same way as the existing "pragma-define" but it adds a PUBLIC directive so that the value is available across the compile during linking.

Compile line:
zcc .... -pragma-export:LABEL=0x8000

Inside C source or pragma include file:
#pragma export LABEL=0x8000

I've also added "pragma define" to scanner.c so that it is also available inside C programs. Previously we were using a different name "pragma output" for the same thing which made compile lines and embedded pragmas inconsistent.