source: rtems-graphics-toolkit/fltk-1.3.0/rtems_main.cxx @ a2d9dfc

Last change on this file since a2d9dfc was a2d9dfc, checked in by Alexandru-Sever Horin <alex.sever.h@…>, on Aug 9, 2012 at 1:11:37 PM

Modified tests to use a wrapper file(function) on linkage

  • Property mode set to 100644
File size: 454 bytes
Line 
1//#ifndef RTEMS_MAIN_H
2//#define RTEMS_MAIN_H
3
4//transform call to main to call to rtems_main
5//#define main(x,y) rtems_main(x,y)
6//#define main(x)   rtems_main(x)
7//#define main()    rtems_main()
8
9//extern "C" int rtems_main(int argc, char **argv)
10//{
11//  main(argc, argv);
12//}
13//
14//
15//#endif
16//extern "C"
17extern int main(int argc, char **argv);
18
19
20extern "C" int rtems_main(int argc, char **argv)
21{
22  using namespace std;
23  return main(argc, argv);
24}
25
Note: See TracBrowser for help on using the repository browser.