src/error.h
changeset 100 cfb7776bd6f0
parent 98 f357f835f0d5
child 106 f00661136ac2
--- a/src/error.h	Tue Mar 31 23:35:24 2009 +0300
+++ b/src/error.h	Tue Mar 31 23:36:05 2009 +0300
@@ -90,6 +90,8 @@
     /** config errors */
     _ERR_CONFIG     = 0x000b00,
     ERR_CONFIG_NAME,
+    ERR_CONFIG_TYPE,
+    ERR_CONFIG_REQUIRED,
     
     /** lua errors */
     _ERR_LUA        = 0x000c00,
@@ -209,4 +211,9 @@
 #define JUMP_SET_ERROR_INFO(err_info_ptr, from_ptr) do { SET_ERROR_INFO(err_info_ptr, from_ptr); goto error; } while (0)
 #define JUMP_SET_ERROR_STR(err_info_ptr, err_code, err_str) do { _SET_ERROR_STR(err_info_ptr, err_code, err_str); goto error; } while (0)
 
+/**
+ * Macro used to mark code segments that should never be executed (e.g. switch-default), kind of like assert
+ */
+#define NOT_REACHED() assert(false)
+
 #endif