int main(int argc, char** argv) { if(MyProgram.Init(argc, argv)) MyProgram.mainLoop(); return 0; }
int main(int ac, char **av) { //testOpenCL(); LogService::GetInstance()->SetConfiguration(LogService::LS_PRINT_ON_COUT); LogQueue* logQueue = LogService::GetInstance()->CreateNewLogQueue(); logQueue->AddLogMessage(LogService::NOTICE, "main", "BLINK::HTM test main"); if (ac == 4) { ProgramConfig config; config.loop = 100; config.filename = av[1]; std::istringstream stm, stm2; stm.str(av[2]); stm >> config.radius; stm2.str(av[3]); stm2 >> config.delta; Program prgm; prgm.Init(config); prgm.Launch(); prgm.Clean(); }