summaryrefslogtreecommitdiff
path: root/inc/common/error.h
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2012-08-03 19:51:46 +0400
committerAndrey Nazarov <skuller@skuller.net>2012-08-03 19:51:46 +0400
commit92101f85480cdf6cffabaf9f68048d37c8c97e55 (patch)
treeb613d1ae3d46bb5181359f74e62f04edd068e9ed /inc/common/error.h
parent1ace24c87aaf0b49e342a2c3e1f9aa15f21d48dc (diff)
Don't crash when image/model/sound tables overflow.
Print an error message instead. Also double model table size.
Diffstat (limited to 'inc/common/error.h')
-rw-r--r--inc/common/error.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/inc/common/error.h b/inc/common/error.h
index 6b7754e..2a9702e 100644
--- a/inc/common/error.h
+++ b/inc/common/error.h
@@ -51,10 +51,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#define Q_ERR_RUNAWAY_LOOP _Q_ERR(15) // Runaway loop avoided
#define Q_ERR_INFINITE_LOOP _Q_ERR(16) // Infinite loop avoided
#define Q_ERR_LIBRARY_ERROR _Q_ERR(17) // Library error
+#define Q_ERR_OUT_OF_SLOTS _Q_ERR(18) // Out of slots
#if USE_ZLIB
-#define Q_ERR_INFLATE_FAILED _Q_ERR(18) // Inflate failed
-#define Q_ERR_DEFLATE_FAILED _Q_ERR(19) // Deflate failed
-#define Q_ERR_NOT_COHERENT _Q_ERR(20) // Coherency check failed
+#define Q_ERR_INFLATE_FAILED _Q_ERR(19) // Inflate failed
+#define Q_ERR_DEFLATE_FAILED _Q_ERR(20) // Deflate failed
+#define Q_ERR_NOT_COHERENT _Q_ERR(21) // Coherency check failed
#endif
// These values directly map to system errno.