… | |
… | |
42 | char string [size]; |
42 | char string [size]; |
43 | }; |
43 | }; |
44 | |
44 | |
45 | // this class is a non-refcounted shared string |
45 | // this class is a non-refcounted shared string |
46 | // it cannot be used to create or store shared strings, but |
46 | // it cannot be used to create or store shared strings, but |
47 | // it can be used to apss shared strings around, i.e. as function arguments |
47 | // it can be used to pass shared strings around, i.e. as function arguments |
48 | // or return values. their lifetime must not span a gc () call, i.e. |
48 | // or return values. their lifetime must not span a gc () call, i.e. |
49 | // they are only valid as temporary values within the same server tick. |
49 | // they are only valid as temporary values within the same server tick. |
50 | struct shstr_tmp |
50 | struct shstr_tmp |
51 | { |
51 | { |
52 | static shstr_vec<sizeof ("(null)")> nullvec; |
52 | static shstr_vec<sizeof ("(null)")> nullvec; |