]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/errors.hpp
io.streams.256color: faster by caching styles
[factor.git] / vm / errors.hpp
index b43938e0a6551e7076947a92f8f2e76454f1b6ce..af62306a46f8dab4d9a5d0d4494bf8f67f8e8e38 100644 (file)
@@ -3,16 +3,17 @@ namespace factor {
 // Runtime errors must be kept in sync with:
 //   basis/debugger/debugger.factor
 //   core/kernel/kernel.factor
+#define KERNEL_ERROR 0xfac7
+
 enum vm_error_type {
   ERROR_EXPIRED = 0,
   ERROR_IO,
-  ERROR_NOT_IMPLEMENTED,
+  ERROR_UNUSED,
   ERROR_TYPE,
   ERROR_DIVIDE_BY_ZERO,
   ERROR_SIGNAL,
   ERROR_ARRAY_SIZE,
   ERROR_OUT_OF_FIXNUM_RANGE,
-  ERROR_C_STRING,
   ERROR_FFI,
   ERROR_UNDEFINED_SYMBOL,
   ERROR_DATASTACK_UNDERFLOW,
@@ -29,7 +30,6 @@ enum vm_error_type {
 
 void fatal_error(const char* msg, cell tagged);
 void critical_error(const char* msg, cell tagged);
-void out_of_memory(const char* msg);
 void memory_signal_handler_impl();
 void fp_signal_handler_impl();
 void synchronous_signal_handler_impl();