EnglishРусский  

Ads

Installer and installation software
Commercial and Freeware installers.

The include command

The include command is used to include additional files with source code in the Gentee language or with already compiled byte code. You can include ready-made libraries and use their functions after that or combine several modules into one project. If you specify a file with the .ge extension that contains compiled byte code, it is included without additional compilation. If some file is included more than once, the compiler ignores the repeated inclusions of the file.

Included files are listed inside curly braces, either one file on a line or they must be separated by commas. You can specify both absolute and relative paths to files. The names of files are strings that is why it is necessary to either double the '\' character or put '$' before the braces.

include 
{   
   "myfile1.g"
   $"c:\path\myfile2.g"
   "c:\\mylib\\mylib.g"
   $"$MYLIB\library.g"
   $"..\src\library.g"
}

The include command can be used in any place of the program and in any Gentee files. You can specify include inside the ifdef command.

ifdef $MYPROG
{
   include : "myfile1.g"
}
// OR 
include 
{
   ifdef $MYPROG : "myfile1.g"
}

You can configure the compiler profiles in such a way that you always include certain files and then you do not have to define them with include. You can also list directories to search for files in a profile. In this case, it will be enough for you to specify only the file names in the include command and the compiler will automatically find them in these directories.