33 lines
581 B
C++
Executable File
33 lines
581 B
C++
Executable File
namespace factor
|
|
{
|
|
|
|
/* Runtime errors */
|
|
enum vm_error_type
|
|
{
|
|
ERROR_EXPIRED = 0,
|
|
ERROR_IO,
|
|
ERROR_NOT_IMPLEMENTED,
|
|
ERROR_TYPE,
|
|
ERROR_DIVIDE_BY_ZERO,
|
|
ERROR_SIGNAL,
|
|
ERROR_ARRAY_SIZE,
|
|
ERROR_C_STRING,
|
|
ERROR_FFI,
|
|
ERROR_UNDEFINED_SYMBOL,
|
|
ERROR_DS_UNDERFLOW,
|
|
ERROR_DS_OVERFLOW,
|
|
ERROR_RS_UNDERFLOW,
|
|
ERROR_RS_OVERFLOW,
|
|
ERROR_MEMORY,
|
|
ERROR_FP_TRAP,
|
|
};
|
|
|
|
void fatal_error(const char *msg, cell tagged);
|
|
void critical_error(const char *msg, cell tagged);
|
|
void out_of_memory();
|
|
void memory_signal_handler_impl();
|
|
void fp_signal_handler_impl();
|
|
void misc_signal_handler_impl();
|
|
|
|
}
|