Next Previous Contents

62. SLang_byte_compile_file


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, 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.

See Also

SLang_load_file, SLang_init_slang

Next Previous Contents