commands.cxx

changeset 12
1bdbfcca2fc6
parent 11
f08abacb46c9
child 16
393359908179
equal deleted inserted replaced
11:f08abacb46c9 12:1bdbfcca2fc6
119 // If this is an optional parameter, we need the default value. 119 // If this is an optional parameter, we need the default value.
120 if (curarg >= comm->numargs) { 120 if (curarg >= comm->numargs) {
121 r->MustNext ("="); 121 r->MustNext ("=");
122 switch (type) { 122 switch (type) {
123 case RETURNVAL_INT: r->MustNumber(); break; 123 case RETURNVAL_INT: r->MustNumber(); break;
124 case RETURNVAL_STRING: r->token = r->MustGetString(); break; 124 case RETURNVAL_STRING: r->MustString(); break;
125 case RETURNVAL_BOOLEAN: r->MustBool(); break; 125 case RETURNVAL_BOOLEAN: r->MustBool(); break;
126 } 126 }
127 127
128 comm->defvals[curarg] = r->token; 128 comm->defvals[curarg] = r->token;
129 } 129 }

mercurial