Ignore:
Timestamp:
01/27/15 23:13:10 (9 years ago)
Author:
Maciej Komosinski
Message:

Improved documentation (for Param flags in particular)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/param/param.cpp

    r314 r316  
    497497        case 'o':       ret.setObject(getObject(i)); break;
    498498        case 'x':       ret = getExtValue(i); break;
    499         default: FMprintf("ParamInterface", "get", FMLV_ERROR, "'%s.%s' is not mn field", getName(), id(i));
     499        default: FMprintf("ParamInterface", "get", FMLV_ERROR, "'%s.%s' is not a field", getName(), id(i));
    500500        }
    501501}
     
    783783        while (*t) if (*t == ' ') break; else t++;
    784784        if (sscanf(t, PA_INT_SCANF " " PA_INT_SCANF, &mn, &mx) == 2)
    785                 if (mn <= mx) // if max<min then the min/max constraint check is not supported
     785                if (mn <= mx) // else if mn>mx then the min/max constraint makes no sense and there is no checking
    786786                {
    787787                if (x < mn) { x = mn; result = PSET_HITMIN; }
     
    819819        while (*t) if (*t == ' ') break; else t++;
    820820        if (sscanf(t, "%lg %lg", &mn, &mx) == 2)
    821                 if (mn <= mx) // if max<min then the min/max constraint check is not supported
     821                if (mn <= mx) // else if mn>mx then the min/max constraint makes no sense and there is no checking
    822822                {
    823823                if (x < mn) { x = mn; result = PSET_HITMIN; }
Note: See TracChangeset for help on using the changeset viewer.