extern variables

Top  Previous  Next

What is translated > File layout > extern variables

 

Variables declared in interface parts are qualified as extern in the C++ headers and their instances are included into the implementation cpp-files.

 

TokenList : TList = NIL;

->

extern TList TokenList;  // in the header file

TList* TokenList = NULL; // in the cpp -file

 

 

 



This page belongs to the Delphi2Cpp Documentation

Delphi2Cpp home  Content