Interpret a file containing S-Lang code.
Integer_Type evalfile (String_Type file, [,String_Type namespace])
The evalfile function loads file into the interpreter
and executes it. If called with the optional namespace argument,
the file will be loaded into the specified namespace, which will be
created if necessary. If no errors were encountered, 1 will
be returned; otherwise, a S-Lang error will be generated and the
function will return zero.
define load_file (file)
{
ERROR_BLOCK { _clear_error (); }
() = evalfile (file);
}
For historical reasons, the return value of this function is not
really useful.
The file is searched along an application-defined load-path. The
get_slang_load_path and set_slang_load_path functions
may be used to set and query the path.
- slangrtl
-
__get_reference,
__is_initialized,
append_to_slang_load_path,
autoload,
byte_compile_file,
eval,
get_slang_load_path,
import,
is_defined,
make_printable_string,
path_get_delimiter,
prepend_to_slang_load_path,
require,
set_slang_load_path
|