Next Previous Contents

31. evalfile

Synopsis

Interpret a file containing S-lang code.

Usage

Integer_Type evalfile (String_Type file)

Description

The evalfile function loads file into the interpreter. If no errors were encountered, 1 will be returned; otherwise, a S-lang error will be generated and the function will return zero.

Example

    define load_file (file)
    {
       ERROR_BLOCK { _clear_error (); }
       () = evalfile (file);
    }
See Also

eval, autoload


Next Previous Contents