/**
* @file main.h
* The prototype of the application's ORO_main
*
*/
#include "startstop.h"
#include "../Logger.hpp"
/**
* Forward declare this wrapper around the user code.
* @see ORO_main
*/
int ORO_main_impl(int,char**);
/**
* Declare the function 'int ORO_main(int argc, char **argv)' instead
* of 'int main(int argc, char **argv)' such that the Real-Time
* Toolkit can setup the OS environment, prior to executing user
* code. Using ORO_main is optional, but in some RTOS'es, you'll be
* required to call __os_init() and __os_exit() instead when not using
* ORO_main.
*
* @see __os_init(), __os_exit()
*/
#define ORO_main \
main( int argc, char **argv) { \
int res = -1; \
std::string location(argv[0]); location += "::main()"; \
RTT源码分析之main函数改写测试-1
最新推荐文章于 2024-05-07 11:05:56 发布