gentee_compile function."> Gentee: compileinfo
EnglishРусский  
The project is closed! You can look at a new scripting language. It is available on GitHub.
Also, try our open source cross-platform automation software.

Ads

Installer and installation software
Commercial and Freeware installers.

compileinfo

The structure for the using in gentee_compile function.

typedef struct
{
   pubyte input;
   uint flag;
   pubyte libdirs;
   pubyte include;
   pubyte defargs;
   pubyte output;
   pvoid hthread;
   uint result;
   optimize opti;
} compileinfo, * pcompileinfo;

Members

input The Gentee filename. You can specify the Gentee source if the flag CMPL_SRC is defined.
flag Compile flags.
CMPL_SRCSpecify if compileinfo.input is Gentee source
CMPL_NORUNDon't run anything after the compilation.
CMPL_GECreate GE file
CMPL_LINEProceed #! at the first string
CMPL_DEBUGCompilation with the debug information
CMPL_THREADCompilation in the thread
CMPL_NOWAITDo not wait for the end of the compilation. Use with CMPL_THREAD only.
CMPL_OPTIMIZEOptimize the output GE file.
CMPL_NOCLEARDo not clear existing objects in the virtual machine.
CMPL_ASMConvert the bytecode to assembler code.
libdirs Folders for searching files: name1 0 name2 0 ... 00. It may be NULL.
include Include files: name1 0 name2 0 ... 00. These files will be compiled at the beginning of the compilation process. It may be NULL.
defargs Define arguments: name1 0 name2 0 ... 00. You can specify additional macro definitions. For example, MYMODE = 10. In this case, you can use $MYMODE in the Gentee program. It may be NULL.
output Ouput filename for GE. In default, .ge file is created in the same folder as .g main file. You can specify any path and name for the output bytecode file. You must specify CMPL_GE flag to create the bytecode file.
hthread The result handle of the thread if you specified CMPL_THREAD | CMPL_NOWAIT.
result Result of the program if it was executed.
opti Optimize structure. It is used if flag CMPL_OPTIMIZE is defined.

Related links

Source