[fpc-pascal] external variable

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Sun Sep 28 22:26:42 CEST 2008


Is ist possible to declare a external variable like in C?

In the Cocoa headers there are some variables declared as external, like this:

APPKIT_EXTERN NSString *NSToolbarSpaceItemIdentifier;

How would it be possible to access them in Pascal?

var NSToolbarSpaceItemIdentifier: CFStringRef; external;

Doesn't work.

Felipe Monteiro de Carvalho

More information about the fpc-pascal mailing list