Ignore:
Timestamp:
12/31/16 20:35:12 (7 years ago)
Author:
Maciej Komosinski
Message:

f0 is strict now, will not accept float when int is expected

File:
1 edited

Legend:

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

    r640 r645  
    118118        ExtValue getById(const char* prop);
    119119
    120         int setInt(int i, const char* str);
     120        int setInt(int i, const char* str, bool strict=false);
    121121        int setDouble(int i, const char* str);
    122122        virtual int setInt(int, paInt) = 0;             ///< set long value, you can only use this for "d" type prop
     
    128128        int set(int, const ExtValue &);///< most universal set, can be used for every datatype
    129129
    130         int set(int, const char*);              ///< oldstyle set, can convert string to long or double
     130        int set(int, const char*, bool strict=false);           ///< oldstyle set, can convert string to long or double
    131131
    132132        int setIntById(const char* prop, paInt);///< set long value, you can only use this for "d" type prop
Note: See TracChangeset for help on using the changeset viewer.