commands.cxx

changeset 28
fb46d3d40064
parent 21
ae602e667879
child 33
fd35f6cb5f28
equal deleted inserted replaced
27:15c06a191f9b 28:fb46d3d40064
140 curdef = comm; 140 curdef = comm;
141 } 141 }
142 numCommDefs++; 142 numCommDefs++;
143 } 143 }
144 144
145 /*
146 CommandDef* c;
147 ITERATE_COMMANDS (c) {
148 printf ("[%u] %s: %d, %d arguments, return type %d\n",
149 c->number, c->name.chars(), c->numargs, c->maxargs, c->returnvalue);
150 }
151 */
152
153 delete r; 145 delete r;
146
147 if (!numCommDefs)
148 error ("error: no commands defined!\n");
154 printf ("%d command definitions read.\n", numCommDefs); 149 printf ("%d command definitions read.\n", numCommDefs);
155 } 150 }
156 151
157 // urgh long name 152 // urgh long name
158 int GetReturnTypeByString (str t) { 153 int GetReturnTypeByString (str t) {

mercurial