You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
471 B
25 lines
471 B
9 years ago
|
#include "globals.h"
|
||
|
|
||
|
// Variables definitions
|
||
|
std::map<std::string,ObjectBase*> G_vars;
|
||
|
|
||
|
// Functions addresses
|
||
|
std::multimap<std::string,Func> G_funcs;
|
||
|
|
||
|
// List of objects to save
|
||
|
std::list<ObjectBase*> G_tosave;
|
||
|
|
||
|
// List of objects to print
|
||
|
std::list<ObjectBase*> G_toprint;
|
||
|
|
||
|
void ClearGlobals()
|
||
|
{
|
||
|
for(auto& it:G_vars) delete it.second;
|
||
|
for(auto& it:G_tosave) delete it;
|
||
|
for(auto& it:G_toprint) delete it;
|
||
|
|
||
|
G_vars.clear();
|
||
|
G_tosave.clear();
|
||
|
G_toprint.clear();
|
||
|
}
|