include_file [function]
include_file( string file[, bool override ] )
executes the file pointed to by file
, returns success, as bool
, emits a warning on failure
- this function does NOT check include paths (SGS_PATH)
- if
override
is specified, file will be reloaded even if it was already loaded before
- this function is equivalent to sgs_ExecFile in the C API
include_file( "something.sgs" ); // loads something
include_file( "something.sgs" ); // does not load it again
include_file( "something.sgs", true ); // loads it again