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.

24 lines
484 B

9 years ago
#include "debug.h"
#include "init.h"
#include "globals.h"
9 years ago
int main(int argc, char** argv)
{
if(argc!=2) return 1;
int ret;
9 years ago
SetDebugLevel(INFO);
9 years ago
COUT(INFO)<<"Parse config file "<<argv[1]<<" ";
ret=ParseConfigFile(argv[1]); if(ret!=0) { ClearGlobals(); return 1;}
COUT(INFO)<<"Ok"<<std::endl;
RegisterArifmeticFunctions();
9 years ago
COUT(INFO)<<G_vars.size()<<std::endl;
for(auto& i: G_vars) COUT(INFO)<<i.first<<"="+i.second->Dump()<<";"<<std::endl;
ClearGlobals();
9 years ago
return 0;
}