Sha256: ba7f266731608fe7c789a4f52b1289dd36dcaf608880f7d599a5a0041591a18d

Contents?: true

Size: 228 Bytes

Versions: 1

Compression:

Stored size: 228 Bytes

Contents

#include "cruby.h"

VALUE
llrb_insn_opt_str_freeze(VALUE str)
{
  if (BASIC_OP_UNREDEFINED_P(BOP_FREEZE, STRING_REDEFINED_OP_FLAG)) {
    return str;
  }
  else {
    return rb_funcall(rb_str_resurrect(str), idFreeze, 0);
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
llrb-0.0.1 ext/llrb_insn_opt_str_freeze.c