Byte-compile a file for faster loading
int SLang_byte_compile_file(char *fn, int reserved)
The SLang_byte_compile_file
function ``byte-compiles'' the
file fn
for faster loading by the interpreter. This produces
a new file whose filename is equivalent to the one specified by
fn
, except that a 'c'
is appended to the name. For
example, if fn
is set to init.sl
, then the new file
will have the name exmp{init.slc}. The meaning of the second
parameter, reserved
, is reserved for future use. For now, set
it to 0
.
The function returns zero upon success, or -1
upon error and
sets SLang_Error accordingly.
SLang_load_file, SLang_init_slang