
|
<<
Index
>>
|
FutureBasic 5
|
|
BeginCFunction
|
|
statement
|
|
Syntax:
BeginCFunction
C statements
EndC
Description:
Marks the beginning of a block of C language statements. The block must be terminated with the EndC statement. The C statements are copied untranslated into the C source code, then compiled by the C compiler. BeginCFunction is intended to replace and has advantages over the old #if def _PASSTHROUGHFUNCTION / #endif syntax. The #if def _PASSTHROUGHFUNCTION / #endif syntax continues to be available.
Unlike #if def _PASSTHROUGHFUNCTION / #endif, BeginCFunction does not interfere with editor indentation and C keywords within the block are not highlighted.
#if def _PASSTHROUGHFUNCTION
// FBtoC sees this; FutureBasic does not
// FBtoC passes everything, except comments, untranslated to the compiler
// the C code, typically a function definition, goes before main()
#endif
could be written as:
BeginCFunction
// FBtoC passes everything, except comments, untranslated to the compiler
// the C code, typically a function definition, goes before main()
EndC
See Also:
BeginCCode; BeginCDeclaration; EndC; #if