next up previous contents index
Next: Xcoral interface Up: Predefined functions Previous: Execution profile


Here are some other useful functions.


   void load_file(char * filename)

Loads the file specified by filename (the sc suffix used in the given files is not required, Smac does not use default suffixes), all included definitions and declarations are added in the global environment, free expressions are executed.


   void error(char * msg)

Aborts the current execution and prints msg. If Smac was called from Xcoral, control is given back to Xcoral and msg is printed in a special window (see also display\_message §7.3.12 page gif) and the stack of last called functions is given.


  void showed_stack_size(int height)

Sets the number of last called functions given when an error occurred, default value is 10.

Lionel Fournigault
Mon Mar 6 13:33:34 MET 1995