ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/shstr.C
(Generate patch)

Comparing deliantra/server/common/shstr.C (file contents):
Revision 1.34 by root, Wed Dec 31 18:25:12 2008 UTC vs.
Revision 1.37 by root, Thu Jan 1 16:05:12 2009 UTC

128 128
129 curpos = *i; 129 curpos = *i;
130} 130}
131 131
132// declare these here to get correct initialisation order 132// declare these here to get correct initialisation order
133 133#define def2(id,str) const shstr id (str);
134#define def(str) \ 134#define def(id) def2(shstr_ ## id, # id)
135 shstr_vec<sizeof (# str)> shstr_vec_ ## str = { sizeof (# str) - 1, 0xffffffff, # str }; \
136 const shstr_const shstr_ ## str (shstr_vec_ ## str.string);
137# include "shstrinc.h" 135# include "shstrinc.h"
138#undef def 136#undef def
137#undef def2
139 138
140shstr skill_names[NUM_SKILLS]; 139shstr skill_names[NUM_SKILLS];
141 140
142//TODO: this should of course not be here 141//TODO: this should of course not be here
143 142

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines