aboutsummaryrefslogtreecommitdiffstats
path: root/error.c
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-10-09 23:02:22 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-10-09 23:02:22 +0900
commitdd477df411691803fc5a83c7daa64faac112a0e4 (patch)
tree0a95c5ef1206fee0e4340ffe07f932034943c298 /error.c
parentb9cf58d2b2deca7d5b204080c2fe04d68cc50ab1 (diff)
downloadruby-dd477df411691803fc5a83c7daa64faac112a0e4.tar.gz
error.c (rb_bug_for_fatal_signal): renamed from rb_bug_context
Just refactoring. The name "rb_bug_context" is completely unclear for me. (Can you see that "context" means "machine register context"?) The context is available only when a fatal signal (sigbus, sigsegv, or sigill) is received; in fact, the function is used only for fatal signals. So, I think the name should be changed.
Diffstat (limited to 'error.c')
-rw-r--r--error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/error.c b/error.c
index bef5090011..56ea9ae084 100644
--- a/error.c
+++ b/error.c
@@ -599,7 +599,7 @@ rb_bug(const char *fmt, ...)
}
void
-rb_bug_context(const void *ctx, const char *fmt, ...)
+rb_bug_for_fatal_signal(const void *ctx, const char *fmt, ...)
{
const char *file = NULL;
int line = 0;