use pre-allocated RuntimeError for out-of-memory

This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-06-04 11:33:15 +09:00
parent b01bb33b75
commit d62ce565c6
3 changed files with 8 additions and 4 deletions
+1
View File
@@ -167,6 +167,7 @@ typedef struct mrb_state {
struct RClass *eException_class;
struct RClass *eStandardError_class;
struct RObject *nomem_err; /* pre-allocated NoMemoryError */
void *ud; /* auxiliary data */
} mrb_state;