aboutsummaryrefslogtreecommitdiffstats
path: root/iseq.h
diff options
context:
space:
mode:
authorHParker <HParker@github.com>2023-12-01 13:25:41 -0800
committerJemma Issroff <jemmaissroff@gmail.com>2023-12-05 12:17:14 -0500
commit9b76c7fc89460ed8e9be40e4037c1d68395c0f6d (patch)
treefc0b1638f528bafd00fce2e09bab32d5977c0947 /iseq.h
parent19114014faf9e22c29c105df4d0b7af84c257366 (diff)
downloadruby-9b76c7fc89460ed8e9be40e4037c1d68395c0f6d.tar.gz
allow enabling Prism via flag or env var
Enable Prism using either --prism ruby --prism test.rb or via env var RUBY_PRISM=1 ruby test.rb
Diffstat (limited to 'iseq.h')
-rw-r--r--iseq.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/iseq.h b/iseq.h
index 5d17bb5d5b..2e3467aa79 100644
--- a/iseq.h
+++ b/iseq.h
@@ -13,6 +13,7 @@
#include "internal/gc.h"
#include "shape.h"
#include "vm_core.h"
+#include "prism/prism.h"
RUBY_EXTERN const int ruby_api_version[];
#define ISEQ_MAJOR_VERSION ((unsigned int)ruby_api_version[0])
@@ -173,6 +174,7 @@ void rb_iseq_init_trace(rb_iseq_t *iseq);
int rb_iseq_add_local_tracepoint_recursively(const rb_iseq_t *iseq, rb_event_flag_t turnon_events, VALUE tpval, unsigned int target_line, bool target_bmethod);
int rb_iseq_remove_local_tracepoint_recursively(const rb_iseq_t *iseq, VALUE tpval);
const rb_iseq_t *rb_iseq_load_iseq(VALUE fname);
+rb_iseq_t * rb_iseq_new_main_prism(pm_string_t *input, pm_options_t *options, VALUE path);
#if VM_INSN_INFO_TABLE_IMPL == 2
unsigned int *rb_iseq_insns_info_decode_positions(const struct rb_iseq_constant_body *body);