src/core/alloc_func.cpp
branchnoai
changeset 10249 58810805030e
parent 9732 f8eb3e208514
child 10429 1b99254f9607
--- a/src/core/alloc_func.cpp	Thu Apr 17 08:40:01 2008 +0000
+++ b/src/core/alloc_func.cpp	Fri Apr 18 23:33:51 2008 +0000
@@ -9,7 +9,7 @@
  * Function to exit with an error message after malloc() or calloc() have failed
  * @param size number of bytes we tried to allocate
  */
-void MallocError(size_t size)
+void NORETURN MallocError(size_t size)
 {
 	error("Out of memory. Cannot allocate %i bytes", size);
 }
@@ -18,7 +18,7 @@
  * Function to exit with an error message after realloc() have failed
  * @param size number of bytes we tried to allocate
  */
-void ReallocError(size_t size)
+void NORETURN ReallocError(size_t size)
 {
 	error("Out of memory. Cannot reallocate %i bytes", size);
 }