]> gitweb.factorcode.org Git - factor.git/blob - vm/strings.hpp
VM: Refactor strings.cpp/hpp to Factor style
[factor.git] / vm / strings.hpp
1 namespace factor {
2
3 inline static cell string_capacity(const string* str) {
4   return untag_fixnum(str->length);
5 }
6
7 inline static cell string_size(cell size) { return sizeof(string) + size; }
8
9 }