commands.cxx

changeset 38
e4bbd540663b
parent 36
a8838b5f1213
child 54
8cc91ef94754
equal deleted inserted replaced
37:c349dca807f9 38:e4bbd540663b
120 120
121 // If this is an optional parameter, we need the default value. 121 // If this is an optional parameter, we need the default value.
122 if (curarg >= comm->numargs) { 122 if (curarg >= comm->numargs) {
123 r->MustNext ("="); 123 r->MustNext ("=");
124 switch (type) { 124 switch (type) {
125 case RETURNVAL_INT: r->MustNumber(); break; 125 case RETURNVAL_INT:
126 case RETURNVAL_BOOLEAN:
127 r->MustNumber(); break;
126 case RETURNVAL_STRING: r->MustString(); break; 128 case RETURNVAL_STRING: r->MustString(); break;
127 case RETURNVAL_BOOLEAN: r->MustBool(); break;
128 } 129 }
129 130
130 comm->defvals[curarg] = r->token; 131 comm->defvals[curarg] = r->token;
131 } 132 }
132 133

mercurial