Changeset 490 for cpp/frams/vm/classes


Ignore:
Timestamp:
03/30/16 17:08:08 (9 years ago)
Author:
Maciej Komosinski
Message:

Introduced general-use ErrorObject?, fixed enumeration of mixed private/public property lists

Location:
cpp/frams/vm/classes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/vm/classes/collectionobj.cpp

    r478 r490  
    545545        ret->setEmpty();
    546546}
     547
     548// not actually needed for deserialization (vector and dict are special cases) but findDeserializableClass can be also used in other contexts
     549REGISTER_DESERIALIZABLE(VectorObject)
     550REGISTER_DESERIALIZABLE(DictionaryObject)
  • cpp/frams/vm/classes/collectionobj.h

    r478 r490  
    2525VectorObject():readonly(0),owndata(1) {}
    2626~VectorObject() {clear();}
     27static Param& getStaticParam() {return par;}
    2728#define STATRICKCLASS VectorObject
    2829PARAMPROCDEF(p_clear) {if (readonly) return; clear();}
     
    6263DictionaryObject():it(hash),it_index(-1) {}
    6364~DictionaryObject() {clear();}
     65static Param& getStaticParam() {return par;}
    6466#define STATRICKCLASS DictionaryObject
    6567PARAMPROCDEF(p_clear) {clear();}
Note: See TracChangeset for help on using the changeset viewer.