summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorAlan Wu <[email protected]>2024-08-27 19:15:37 -0400
committerGitHub <[email protected]>2024-08-27 23:15:37 +0000
commitf2ac0130091708a10f37f5416be7edc71b05899b (patch)
treec2824404ec5272d1bd91c753f1e909a2e789de0a /vm.c
parent1729f47e72b22c3d13203548583e7d70c0b44427 (diff)
Add RB_DEFAULT_PARSER preprocessor macro
This way there is one place to change for switching the default. This also allows for building the same commit with different cppflags.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11473 Merged-By: XrXr
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index 4f6b96da5f..e92c823cd7 100644
--- a/vm.c
+++ b/vm.c
@@ -4456,7 +4456,7 @@ rb_ruby_verbose_ptr(void)
return &cr->verbose;
}
-static bool prism;
+static bool prism = (RB_DEFAULT_PARSER == 1);
bool *
rb_ruby_prism_ptr(void)