summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-06-04 11:33:15 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-06-04 11:33:15 +0900
commitd62ce565c66a427a0f01cf7301ff59362a460aba (patch)
tree55e2bae439ce0669dd19c5de9f4c5e9cae2d2e37 /include
parentb01bb33b75e43ca68c70d7cabb53dc1718603541 (diff)
downloadmruby-d62ce565c66a427a0f01cf7301ff59362a460aba.tar.gz
mruby-d62ce565c66a427a0f01cf7301ff59362a460aba.zip
use pre-allocated RuntimeError for out-of-memory
Diffstat (limited to 'include')
-rw-r--r--include/mruby.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mruby.h b/include/mruby.h
index c1f45bf0b..e2054f440 100644
--- a/include/mruby.h
+++ b/include/mruby.h
@@ -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;