Added throwOutOfMemoryException().

This commit is contained in:
Markus F.X.J. Oberhumer
2007-05-08 15:28:35 +02:00
parent cb2ff92c2f
commit 40e19293f9
7 changed files with 24 additions and 7 deletions
+8
View File
@@ -161,6 +161,14 @@ void throwBadLoader()
}
void throwOutOfMemoryException(const char *msg)
{
if (msg == NULL)
msg = "out of memory";
throw OutOfMemoryException(msg);
}
void throwIOException(const char *msg, int e)
{
throw IOException(msg, e);