summaryrefslogtreecommitdiff
path: root/iseq.h
diff options
context:
space:
mode:
authorJean Boussier <[email protected]>2024-03-15 12:38:39 +0100
committerJean Boussier <[email protected]>2024-03-15 15:52:33 +0100
commit91bf7eb274e0b6e431b4f89a6dc814701a4d8739 (patch)
tree9915482b68941f3253be1621ad313d8a0d1d4d7b /iseq.h
parentb4f3f3c1031cc9ef5c6741042236db497be6602b (diff)
Refactor frozen_string_literal check during compilation
In preparation for https://bugs.ruby-lang.org/issues/20205. The `frozen_string_literal` compilation option will no longer be a boolean but a tri-state: `on/off/default`.
Diffstat (limited to 'iseq.h')
-rw-r--r--iseq.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/iseq.h b/iseq.h
index ec5b145f43..78e0d900db 100644
--- a/iseq.h
+++ b/iseq.h
@@ -172,6 +172,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);
+int rb_iseq_opt_frozen_string_literal(void);
#if VM_INSN_INFO_TABLE_IMPL == 2
unsigned int *rb_iseq_insns_info_decode_positions(const struct rb_iseq_constant_body *body);