summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-06-13 00:42:03 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-06-13 00:42:03 +0900
commit2067f1f9ffc77b4110d73c4960d098adb3a01470 (patch)
tree620ce5b642703a865bc396721f02ec3e0d37c5c0 /include
parent2ed7089546e8d4f41e32bd9959ef75c894c3e4fd (diff)
parentbe3e36cb0508713d651026597d7320bc9ce8337a (diff)
downloadmruby-2067f1f9ffc77b4110d73c4960d098adb3a01470.tar.gz
mruby-2067f1f9ffc77b4110d73c4960d098adb3a01470.zip
Merge branch 'master' of github.com:mruby/mruby
Diffstat (limited to 'include')
-rw-r--r--include/mruby/string.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mruby/string.h b/include/mruby/string.h
index 05afc794e..f8a1fa7bd 100644
--- a/include/mruby/string.h
+++ b/include/mruby/string.h
@@ -55,6 +55,10 @@ struct RString {
#define RSTR_SET_SHARED_FLAG(s) ((s)->flags |= MRB_STR_SHARED)
#define RSTR_UNSET_SHARED_FLAG(s) ((s)->flags &= ~MRB_STR_SHARED)
+#define RSTR_NOFREE_P(s) ((s)->flags & MRB_STR_NOFREE)
+#define RSTR_SET_NOFREE_FLAG(s) ((s)->flags |= MRB_STR_NOFREE)
+#define RSTR_UNSET_NOFREE_FLAG(s) ((s)->flags &= ~MRB_STR_NOFREE)
+
#define mrb_str_ptr(s) ((struct RString*)(mrb_ptr(s)))
#define RSTRING(s) mrb_str_ptr(s)
#define RSTRING_PTR(s) RSTR_PTR(RSTRING(s))