summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-06-06 00:19:46 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-06-06 00:19:46 +0900
commitb1dd57efa1a1b292021bfe7ba7e4ac14e0b151b9 (patch)
tree4be23df168e7efcabdef6e2f34dcd3dffe37c170 /src
parentcc28f868f157022a6c62129bf938a779a45f39cd (diff)
downloadmruby-b1dd57efa1a1b292021bfe7ba7e4ac14e0b151b9.tar.gz
mruby-b1dd57efa1a1b292021bfe7ba7e4ac14e0b151b9.zip
move IS_EVSTR macro that should be private to src/string.c
Diffstat (limited to 'src')
-rw-r--r--src/string.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/string.c b/src/string.c
index 1572cab14..755656f07 100644
--- a/src/string.c
+++ b/src/string.c
@@ -2308,6 +2308,8 @@ mrb_str_upcase(mrb_state *mrb, mrb_value self)
return str;
}
+#define IS_EVSTR(p,e) ((p) < (e) && (*(p) == '$' || *(p) == '@' || *(p) == '{'))
+
/*
* call-seq:
* str.dump -> new_str