]> gitweb.factorcode.org Git - factor.git/blob - vm/strings.hpp
Moved PRIMITIVE and PRIMITIVE_FORWARDs to primitives.[ch]pp
[factor.git] / vm / strings.hpp
1 namespace factor
2 {
3
4 inline static cell string_capacity(string *str)
5 {
6         return untag_fixnum(str->length);
7 }
8
9 inline static cell string_size(cell size)
10 {
11         return sizeof(string) + size;
12 }
13
14
15 }