[z88dk-dev] new pragma: pragma-export

Bridge to the z88dk-developers mailing list
Post Reply
alvin
Well known member
Posts: 1872
Joined: Mon Jul 16, 2007 7:39 pm

[z88dk-dev] new pragma: pragma-export

Post 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.



------------------------------------------------------------------------------
Post Reply