From 0161f79a123829c08f7e15f82d1c0d7f3a6f9265 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 24 Jun 2015 03:47:37 +0000 Subject: internal.h: rb_fstring_lit * internal.h (rb_fstring_lit): new macro to make a fstring from a string literal. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gc.c') diff --git a/gc.c b/gc.c index a86226e610..dd3d70c3ef 100644 --- a/gc.c +++ b/gc.c @@ -9192,7 +9192,7 @@ Init_GC(void) { VALUE opts; rb_define_const(rb_mGC, "OPTS", opts = rb_ary_new()); -#define OPT(o) if (o) rb_ary_push(opts, rb_fstring_new(#o, strlen(#o))) +#define OPT(o) if (o) rb_ary_push(opts, rb_fstring_lit(#o)) OPT(GC_DEBUG); OPT(USE_RGENGC); OPT(RGENGC_DEBUG); -- cgit v1.2.3