diff options
author | HParker <[email protected]> | 2023-12-01 13:25:41 -0800 |
---|---|---|
committer | Jemma Issroff <[email protected]> | 2023-12-05 12:17:14 -0500 |
commit | 9b76c7fc89460ed8e9be40e4037c1d68395c0f6d (patch) | |
tree | fc0b1638f528bafd00fce2e09bab32d5977c0947 /iseq.h | |
parent | 19114014faf9e22c29c105df4d0b7af84c257366 (diff) |
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |