Next: , Previous: , Up: External Calls to C   [Index]


14.1.2 ick_startup

It is sometimes necessary for a C program to do its own initialisation before the INTERCAL program starts running. To do so, it can use the ick_startup macro inside a function declared with ICK_EC_FUNC_START; the syntax is ick_startup(block), where the argument is an expression, statement, or compound statement to run. The argument itself must not contain any ick_-prefixed macros or functions except possibly ick_create, may have side effects, and must fit the C preprocessor’s idea of what a macro argument should look like (it’s more used to parsing expressions than blocks; the general rule is to avoid commas except when they’re directly or indirectly inside parentheses or strings).