//Initalize static void init(void) { init_mpi(); allocateMemories(); setCoefficient(); initDebug(); }
main(uint bindTable,int numFiles ) { Bindfile aBindfile( bindTable, numFiles ); Aout aAoutHeader; //GDT aGDT; initGDT(); getchar(); initDebug(ErrorDebug); //aBindfile.printBindfile(); //aAoutHeader.printAoutHeader(&aBindfile); printf("Before findModule\n"); getchar(); aBindfile.findModule("Kernel"); printf("\nKernel's code selector 0x%x\n", getCodeSelector(0)); //aGDT.getCodeSelector(0)); printf("Kernel's data selector 0x%x\n", getDataSelector(0)); //aGDT.getDataSelector(0)); getchar(); aBindfile.printBindfile(); aAoutHeader.printAoutHeader(&aBindfile); }
MMSWindowClass::MMSWindowClass() { initAlignment(); initDx(); initDy(); initWidth(); initHeight(); initBgColor(); initBgImagePath(); initBgImageName(); initOpacity(); initFadeIn(); initFadeOut(); initDebug(); initMargin(); initUpArrow(); initDownArrow(); initLeftArrow(); initRightArrow(); initNavigateUp(); initNavigateDown(); initNavigateLeft(); initNavigateRight(); initOwnSurface(); initMoveIn(); initMoveOut(); initModal(); initStaticZOrder(); initAlwaysOnTop(); initFocusable(); initBackBuffer(); initInitialLoad(); }
int main(int argc, char *argv[]) { initDebug(); Threadmanager myManager; Graphics graphics;; Physics physics; Input input; Game game; #ifdef SINGLE_THREADED myManager.setThreadingMode(THREADING_SEQUENCIAL); #endif myManager.registerTask(&game); myManager.registerTask(&graphics); myManager.registerTask(&physics); myManager.registerTask(&input); myManager.run(); myManager.waitForThreadsToFinish(); return EXIT_SUCCESS; }
bool begin() { bool Validated(true); Validated = Validated && glf::checkGLVersion(SAMPLE_MAJOR_VERSION, SAMPLE_MINOR_VERSION); if(Validated && glf::checkExtension("GL_KHR_debug")) Validated = initDebug(); if(Validated) Validated = initProgram(); if(Validated) Validated = initBuffer(); if(Validated) Validated = initVertexArray(); if(Validated) Validated = initTexture(); glDebugMessageInsert( GL_DEBUG_SOURCE_APPLICATION, GL_DEBUG_TYPE_MARKER, 1, GL_DEBUG_SEVERITY_NOTIFICATION, -1, "End initialization"); return Validated; }
int main(int argc, char * argv[]){ //If we want to debug the program manually setup the proper options in order to attach an external debugger if(Config::ATTACH_DEBUGGER){ initDebug(); } MYINFO("Strating prototype ins"); FilterHandler *filterH = FilterHandler::getInstance(); //set the filters for the libraries MYINFO("%s",Config::FILTER_WRITES_ENABLES.c_str()); filterH->setFilters(Config::FILTER_WRITES_ENABLES); //get the start time of the execution (benchmark) tStart = clock(); // Initialize pin PIN_InitSymbols(); if (PIN_Init(argc, argv)) return Usage(); INS_AddInstrumentFunction(Instruction,0); PIN_AddThreadStartFunction(OnThreadStart, 0); // Register ImageUnload to be called when an image is unloaded IMG_AddInstrumentFunction(imageLoadCallback, 0); // Register Fini to be called when the application exits PIN_AddFiniFunction(Fini, 0); // Start the program, never returns PIN_StartProgram(); return 0; }
Renderer::Renderer() { setupLayersAndExtensions(); setupDebug(); initInstance(); initDebug(); initDevice(); }
int main ( int argc, char** argv ) { //threadNames[ boost::this_thread::get_id() ] = "Main Thread"; initDebug(); Foo foo; foo.doSomething(); return 0; }
void InitDebug(void) { #ifdef DEBUG irqInit(); initSpi(); initDebug(); BreakPoint(); #endif }
void IMesh::initialiseManual(std::string name, Server_ptr & server, const Scene_ptr & scene_ptr, boost::shared_ptr<PlanningProblem> prob, std::vector<std::pair<std::string, std::string> >& params) { TaskMap::initialiseManual(name, server, scene_ptr, prob, params); initDebug("/world"); eff_size_ = scene_->getMapSize(object_name_); weights_.setOnes(eff_size_, eff_size_); initialised_ = true; }
void IMesh::initDerived(tinyxml2::XMLHandle & handle) { EParam<std_msgs::String> ref; tinyxml2::XMLHandle tmp_handle = handle.FirstChildElement("ReferenceFrame"); server_->registerParam(ns_, tmp_handle, ref); if (!tmp_handle.ToElement()) ref->data = "/world"; initDebug(ref->data); eff_size_ = scene_->getMapSize(object_name_); weights_.setOnes(eff_size_, eff_size_); initialised_ = true; }
void initWicBasics(int argc, char *argv[], float dummy) { dummy = dummy; /* Dummy argument to include floating point routines */ initMemory(); initWicResources(argv[0]); initDebug(); g_commentList = createSLList(); g_dirList = createSLList(); g_logList = createSLList(); g_currPos = NULL; getCmdLineOptions(argc, argv); initHashTable(); initOutputSystem(); }
int main(int argc, char * argv[]){ //If we want to debug the program manually setup the proper options in order to attach an external debugger if(Config::ATTACH_DEBUGGER){ initDebug(); } MYINFO("->Configuring Pintool<-\n"); //get the start time of the execution (benchmark) tStart = clock(); // Initialize pin PIN_InitSymbols(); if (PIN_Init(argc, argv)) return Usage(); //Register PIN Callbacks INS_AddInstrumentFunction(Instruction,0); //TRACE_AddInstrumentFunction(Trace,0); PIN_AddThreadStartFunction(OnThreadStart, 0); IMG_AddInstrumentFunction(imageLoadCallback, 0); PIN_AddFiniFunction(Fini, 0); PIN_AddInternalExceptionHandler(ExceptionHandler,NULL); //get theknob args ConfigureTool(); if(Config::getInstance()->POLYMORPHIC_CODE_PATCH){ TRACE_AddInstrumentFunction(Trace,0); } proc_info->addProcAddresses(); //init the hooking system HookSyscalls::enumSyscalls(); HookSyscalls::initHooks(); // Start the program, never returns MYINFO("->Starting instrumented program<-\n"); PIN_StartProgram(); return 0; }
void init() { // Défaut toutes les pattes sont en entrée sauf PCD et PGC (qui sont concervés) TRISA = 0xFFFF; TRISB = TRISB | 0xFFFC; init_osc(); //__builtin_write_OSCCONL(OSCCON & ~(0x40)); // Débloquage des RPIN et RPOR initDebug(); UART_init_asser(); UART_init_xbee(); // initSharp(); initTimer(); initTimerEvite(); initPWM(); //__builtin_write_OSCCONL(OSCCON | 0x40); // Rebloquage des RPIN et RPOR }
void setup() { initDebug(); setupChangeModePin(); if (isCycleVoltageModeActive()) { cycleVoltageMode = true; sk720Mode = SK720Mode_off; debugln("Cycle mode activated");debug("Switching states every ");debugNum(CYCLE_MODE_DELAY_MS);debugln("ms."); } else { debugln("Normal mode activated"); setupLEDPins(); setuptInitialLedStates(); setupWatchdogTimer(); setupPinChangeInterrupts(); } setupFastPWM(); power_adc_disable(); power_usi_disable(); }
void testApp :: setup() { ofSetFrameRate( 30 ); ofSetVerticalSync( true ); smoothing = false; initRenderArea(); initFieldConfig(); initFields(); initVideo(); initDebug(); initBlendModes(); initGui(); initAudio(); initTriggers(); tileSaver.init( 10, 0, true ); screenGrabUtil.setup( "movie/trigfield", &renderArea ); }
int main(int argc, char * argv[]){ //If we want to debug the program manually setup the proper options in order to attach an external debugger if(Config::ATTACH_DEBUGGER){ initDebug(); } //get the start time of the execution (benchmark) tStart = clock(); // Initialize pin PIN_InitSymbols(); if (PIN_Init(argc, argv)) return Usage(); //Register PIN Callbacks INS_AddInstrumentFunction(Instruction,0); PIN_AddThreadStartFunction(OnThreadStart, 0); IMG_AddInstrumentFunction(imageLoadCallback, 0); PIN_AddFiniFunction(Fini, 0); PIN_AddInternalExceptionHandler(ExceptionHandler,NULL); PIN_AddFollowChildProcessFunction(followChild, NULL); printf("[INFO] Configuring Pintool\n"); //get theknob args ConfigureTool(); if(Config::getInstance()->POLYMORPHIC_CODE_PATCH){ TRACE_AddInstrumentFunction(Trace,0); } proc_info->addProcAddresses(); //init the hooking system HookSyscalls::enumSyscalls(); HookSyscalls::initHooks(); printf("[INFO] Starting instrumented program\n\n"); //MYINFO(" knob inizio %d %d %d",Config::getInstance()->getDumpNumber(), Config::getInstance()->getDumpNumber(),Config::getInstance()->WRITEINTERVAL_MAX_NUMBER_JMP); PIN_StartProgram(); return 0; }
int main(int argc, char **argv) { atexit(deinit); initConfig(); Common::UString target; int code; if (!parseCommandline(argc, argv, target, code)) return code; // Open the requested log file Common::UString logFile = ConfigMan.getString("logfile"); if (!logFile.empty()) DebugMan.openLogFile(logFile); // Check the requested target if (target.empty() || !ConfigMan.hasGame(target)) { Common::UString path = ConfigMan.getString("path"); if (path.empty()) { if (ConfigMan.getBool("listdebug", false)) { listDebug(); return 0; } error("Neither an existing target, nor a path specified"); } bool useExisting = false; if (target.empty()) { target = ConfigMan.findGame(path); if (!target.empty()) { warning("No target specified, but found a target with a matching path"); useExisting = true; } } target = ConfigMan.createGame(path, target); if (target.empty()) error("Failed creating a new config target for the game"); if (!useExisting) warning("Creating a new target for this game"); } status("Target \"%s\"", target.c_str()); if (!ConfigMan.setGame(target) || !ConfigMan.isInGame()) error("No target \"%s\" in the config file", target.c_str()); Common::UString dirArg = ConfigMan.getString("path"); if (dirArg.empty()) error("Target \"%s\" is missing a path", target.c_str()); Common::UString baseDir = Common::FilePath::makeAbsolute(dirArg); if (!Common::FilePath::isDirectory(baseDir) && !Common::FilePath::isRegularFile(baseDir)) error("No such file or directory \"%s\"", baseDir.c_str()); Engines::GameThread *gameThread = new Engines::GameThread; try { // Initialize all necessary subsystems init(); // Probe and create the game engine gameThread->init(baseDir); // Enable requested debug channels initDebug(); if (ConfigMan.getBool("listdebug", false)) { // List debug channels listDebug(); } else { // Run the game gameThread->run(); EventMan.runMainLoop(); } } catch (Common::Exception &e) { Common::printException(e); std::exit(1); } status("Shutting down"); delete gameThread; // Configs changed, we should save them if (ConfigMan.changed()) { // But don't clobber a broken save if (!configFileIsBroken) ConfigMan.save(); } return 0; }
int main(int argc, char **argv) { initPlatform(); initConfig(); std::vector<Common::UString> args; Common::Platform::getParameters(argc, argv, args); Common::UString target; int code; if (!parseCommandline(args, target, code)) return code; // Check the requested target if (target.empty() || !ConfigMan.hasGame(target)) { Common::UString path = ConfigMan.getString("path"); if (path.empty()) { if (ConfigMan.getBool("listdebug", false)) { listDebug(); return 0; } error("Neither an existing target, nor a path specified"); } bool useExisting = false; if (target.empty()) { target = ConfigMan.findGame(path); if (!target.empty()) { warning("No target specified, but found a target with a matching path"); useExisting = true; } } target = ConfigMan.createGame(path, target); if (target.empty()) error("Failed creating a new config target for the game"); if (!useExisting) warning("Creating a new target for this game"); } if (!ConfigMan.setGame(target) || !ConfigMan.isInGame()) error("No target \"%s\" in the config file", target.c_str()); /* Open the log file. * * NOTE: A log is opened by default, unless the logfile config value * is set to an empty string or nologfile is set to true. */ Common::UString logFile = DebugMan.getDefaultLogFile(); if (ConfigMan.hasKey("logfile")) logFile = ConfigMan.getString("logfile"); if (ConfigMan.getBool("nologfile", false)) logFile.clear(); if (!logFile.empty()) if (!DebugMan.openLogFile(logFile)) warning("Failed to open log file \"%s\" for writing", logFile.c_str()); DebugMan.logCommandLine(args); status("Target \"%s\"", target.c_str()); Common::UString dirArg = ConfigMan.getString("path"); if (dirArg.empty()) error("Target \"%s\" is missing a path", target.c_str()); Common::UString baseDir; try { baseDir = Common::FilePath::canonicalize(dirArg); } catch (...) { error("Invalid path \"%s\"", dirArg.c_str()); } if (!Common::FilePath::isDirectory(baseDir) && !Common::FilePath::isRegularFile(baseDir)) error("No such file or directory \"%s\"", baseDir.c_str()); Engines::GameThread *gameThread = new Engines::GameThread; try { // Enable requested debug channels initDebug(); // Initialize all necessary subsystems init(); // Probe and create the game engine gameThread->init(baseDir); if (ConfigMan.getBool("listdebug", false)) { // List debug channels listDebug(); } else { // Run the game gameThread->run(); EventMan.runMainLoop(); } } catch (...) { EventMan.raiseFatalError(); Common::exceptionDispatcherError(); } if (EventMan.fatalErrorRaised()) std::exit(1); status("Shutting down"); try { delete gameThread; } catch (...) { } try { // Configs changed, we should save them if (ConfigMan.changed()) { // But don't clobber a broken save if (!configFileIsBroken) ConfigMan.save(); } } catch (...) { Common::exceptionDispatcherError(); } deinit(); return 0; }
//----------------------------------------------------------------------------------------------------------------------------- //! @brief this task tests the functions //! @return none //! @author cho //! @note //! @todo //----------------------------------------------------------------------------------------------------------------------------- task main() { initDebug(); }