C preprocessor definitions import

Eike Lange eike.lange at uni-essen.de
Fri Jun 18 15:54:39 CEST 2004


On Friday 18 June 2004 15:40, Igor Marnat wrote:
> But how can I get these values of C preprocessor definitions in my
> Pascal program? 

Please note, that "asmname"  is deprecated.

In C

int foo = FOO_CONST;

where FOO_CONST is defined somewhere else.

In Pascal:

var
  MyFoo: Integer; attribute (name='foo') ; external;
(untested)

Eike

-- 
http://www.gnushi.de




More information about the Gpc mailing list