Changeset 290 for cpp


Ignore:
Timestamp:
01/06/15 06:11:23 (10 years ago)
Author:
Maciej Komosinski
Message:
  • Undefined property/function access returns invalid value
  • Unified param::load()/load2() "unknown property" warnings
File:
1 edited

Legend:

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

    r286 r290  
    417417                        {
    418418                        SString name(p0,p_len);
    419                         FMprintf("ParamInterface","load",FMLV_WARN,"Unknown property '%s' while loading object '%s'",(const char*)name,getName());
     419                        FMprintf("ParamInterface","load",FMLV_WARN,"Unknown property '%s' while reading object '%s' (ignored)",(const char*)name,getName());
    420420                        }
    421421
     
    910910                FMprintf("SimpleAbstractParam", "call", FMLV_ERROR,
    911911                        (*pe->type != 'p') ? "'%s.%s' is not a function" : "Internal error - undefined function pointer for '%s.%s'", getName(), pe->id);
     912                ret->setInvalid();
    912913        }
    913914}
     
    9991000                        i = tmpi;
    10001001                        if (tmpi < 0)
    1001                                 FMprintf("Param", "load2", FMLV_WARN, "Unknown property name for '%s' (ignored)", getName());
     1002                                {
     1003                                SString name(t,(int)(equals_sign - t));
     1004                                FMprintf("Param", "load2", FMLV_WARN, "Unknown property '%s' while reading object '%s' (ignored)",(const char*)name,getName());
     1005                                }
    10021006                        t = equals_sign + 1; // t=value
    10031007                }
Note: See TracChangeset for help on using the changeset viewer.