z88dk forums

z80 Development Kit

You are not logged in.

#1 2016-11-20 17:29:04

alvin
Administrator
Registered: 2007-07-16
Posts: 1932

[z88dk-dev] new pragma: pragma-export

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.



------------------------------------------------------------------------------

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson