summaryrefslogtreecommitdiffhomepage
path: root/src/error.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-09-14 19:51:52 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2019-09-14 23:21:44 +0900
commit57d7fe94a9049c7abaa5b061a0f61a5f44815733 (patch)
tree66034c80933797fbb59540e5c589a608fb3d01ae /src/error.c
parent6f1c08f7d8a43a5d220aca7a5c449a8d04d3017b (diff)
downloadmruby-57d7fe94a9049c7abaa5b061a0f61a5f44815733.tar.gz
mruby-57d7fe94a9049c7abaa5b061a0f61a5f44815733.zip
Add a macro `mrb_frozen_p` that points to `MRB_FROZEN_P`.
Diffstat (limited to 'src/error.c')
-rw-r--r--src/error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/error.c b/src/error.c
index 2bb505d85..ad0be209d 100644
--- a/src/error.c
+++ b/src/error.c
@@ -233,7 +233,7 @@ mrb_exc_set(mrb_state *mrb, mrb_value exc)
(struct RBasic*)mrb->exc == mrb->gc.arena[mrb->gc.arena_idx-1]) {
mrb->gc.arena_idx--;
}
- if (!mrb->gc.out_of_memory && !MRB_FROZEN_P(mrb->exc)) {
+ if (!mrb->gc.out_of_memory && !mrb_frozen_p(mrb->exc)) {
exc_debug_info(mrb, mrb->exc);
mrb_keep_backtrace(mrb, exc);
}