home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / GCC / GERLIB_USR08B.LHA / gerlib / examples / test / examples_doc / example_dok1.cc next >
Encoding:
C/C++ Source or Header  |  1993-12-12  |  752 b   |  29 lines

  1. /* "hide" the original class and template, they are keywords in C++ */
  2. #define class _class
  3. #define template _template
  4.  
  5. extern "C" {
  6. void volatile exit (int);
  7. #include <exec/types.h>
  8. /* if you want to use the functions of <clib/alib_stdio_protos.h>, do this: */
  9. #include <clib/alib_stdio_defines.h>
  10. #ifdef __OPTIMIZE__        /* need lot of time & memory, is selected by -O2 */
  11. #include <inline/exec.h>
  12. #include <inline/dos.h>
  13. #else
  14. #include <clib/exec_protos.h>    /* faster and easier to debug */
  15. #include <clib/dos_protos.h>     /* but code is worse */
  16. #include <clib/tagdefines.h>     /* file that has defines for xxxTags-Calls */
  17. #endif
  18. }
  19.  
  20. #undef template
  21. #undef class
  22.  
  23. /* standard C++-Programm */
  24. int main(void)
  25. {
  26.     // do someting useful here
  27.     return 0;
  28. }
  29.