Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 14, 2013, 6:42:28 PM (11 years ago)
Author:
landauf
Message:

added ability to set the root-context explicitly (and also to destroy it before the class-hierarchy is destroyed).
currently it's not possible to set the root context explicitly during startup of the game because it is already used by static initialization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core6/test/core/class/SubclassIdentifierTest.cc

    r9647 r9649  
    3232
    3333                    IdentifierManager::getInstance().createClassHierarchy();
     34
     35                    Context::setRootContext(new Context(NULL));
    3436                }
    3537
    3638                virtual void TearDown()
    3739                {
     40                    Context::setRootContext(NULL);
     41
    3842                    IdentifierManager::getInstance().destroyAllIdentifiers();
    3943                }
Note: See TracChangeset for help on using the changeset viewer.