Skip to main content

valid_compile_to_c

Discworld driver help

valid_compile_to_c

Name

valid_compile_to_c - controls whether or not an object may be compiled via LPC->C at runtime

Synopsis

int valid_compile_to_c( string file );

Description

When the driver is compiled with LPC_TO_C and RUNTIME_LOADING defined, valid_compile_to_c will be called in the master object whenever a program loads whose name ends in ".C" instead of ".c". If it returns 1, the program compiles to C. If it returns 0, it compiles as a normal LPC object. The name is passed including the trailing ".C".