Ignore:
Timestamp:
Mar 25, 2010, 12:01:27 PM (16 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
c3294f, fe3540
Parents:
521e29
git-author:
Tillmann Crueger <crueger@…> (03/25/10 11:59:56)
git-committer:
Tillmann Crueger <crueger@…> (03/25/10 12:01:27)
Message:

Added full undo functioniality

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/Actions/ActionRegistry.cpp

    r521e29 r8d9984  
    1212
    1313#include <string>
    14 #include <cassert>
     14#include "Helpers/Assert.hpp"
    1515#include <iostream>
    1616
     
    3333  map<const string,Action*>::iterator iter;
    3434  iter = actionMap.find(name);
    35   assert(iter!=actionMap.end() && "Query for an action not stored in registry");
     35  ASSERT(iter!=actionMap.end(),"Query for an action not stored in registry");
    3636  return iter->second;
    3737}
     
    4040  pair<map<const string,Action*>::iterator,bool> ret;
    4141  ret = actionMap.insert(pair<const string,Action*>(action->getName(),action));
    42   assert(ret.second && "Two actions with the same name added to registry");
     42  ASSERT(ret.second,"Two actions with the same name added to registry");
    4343}
    4444
Note: See TracChangeset for help on using the changeset viewer.