|
LPC Library Functions: generate_source |
NAMEgenerate_source() - generates the C code corresponding to an object SYNOPSISvoid generate_source( string file | string *files, void | string out_file ); DESCRIPTIONgenerate_source() calls the LPC->C compiler to generate the source code for the object(s) specified by 'file' or 'files'. If no output file is specified, the output is saved in the SAVE_BINARIES directory. This efun is only available if the driver flag LPC_TO_C is defined. Usage instructions: use the generate_source() efun to create the C code for files you wish to be compiled directly into the driver. This will create a mudlib/ subdirectory in the binaries directory of the mudlib. Replace the mudlib/ directory in the driver source with the new version, and recompile and restart the driver. The lpc_info() efun will return a list of those objects which are compiled as part of the driver. Other than that, there should be no noticeable differences (other than a huge speed increase) in the affected code. Note that if generate_source() fails (returns zero or generates an error), some files may still be created in the mudlib/ directory; however, these are useless. Correct the error, and try again. SEE ALSO |
|
Page design by Frank Jacquette & Tim Hollebeek Copyright (C) 1998 Tim Hollebeek & Frank Jacquette |
|