Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/builder.cpp

    r952f38 r097902  
    5959#include "CommandLineParser.hpp"
    6060#include "config.hpp"
    61 #include "Helpers/Log.hpp"
     61#include "log.hpp"
    6262#include "molecule.hpp"
    6363#include "periodentafel.hpp"
     
    7272#include "UIElements/Dialog.hpp"
    7373#include "Menu/ActionMenuItem.hpp"
    74 #include "Helpers/Verbose.hpp"
     74#include "verbose.hpp"
    7575#include "World.hpp"
    7676
     
    110110}
    111111
     112void dumpMemory(){
     113  ofstream ost("molecuilder.memdump");
     114  Memory::dumpMemory(ost);
     115}
     116
    112117int main(int argc, char **argv)
    113118{
    114119  // while we are non interactive, we want to abort from asserts
    115   //ASSERT_DO(Assert::Abort);
     120  ASSERT_DO(Assert::Abort);
     121  ASSERT_HOOK(dumpMemory);
    116122  string line;
    117123  char **Arguments = NULL;
     
    127133  // need to init the history before any action is created
    128134  ActionHistory::init();
    129 
    130   // In the interactive mode, we can leave the user the choice in case of error
    131   ASSERT_DO(Assert::Ask);
    132135
    133136  // from this moment on, we need to be sure to deeinitialize in the correct order
     
    155158      UIFactory::makeUserInterface("CommandLine");
    156159    } else {
     160      // In the interactive mode, we can leave the user the choice in case of error
     161      ASSERT_DO(Assert::Ask);
    157162      #ifdef USE_GUI_QT
    158163        DoLog(0) && (Log() << Verbose(0) << "Setting UI to QT4." << endl);
Note: See TracChangeset for help on using the changeset viewer.