home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / wps / progs / chaos / sources / inline.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-12  |  508 b   |  19 lines

  1. /* Define the constant INLINE.  If we're using IBM's C Set++, it will expand 
  2.    to a compiler directive that makes the function inline; otherwise, we'll
  3.    just declare it static.
  4.  
  5.    There is no portable way to inline a function in C, but many compilers
  6.    provide some way of doing this.  You may want to edit this file to tell
  7.    it about whichever comiler you're using. 
  8. */
  9.  
  10. #ifdef INLINE
  11. #undef INLINE
  12. #endif
  13.  
  14. #ifdef __IBMC__
  15. #define INLINE _Inline
  16. #else
  17. #define INLINE static
  18. #endif
  19.