home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PROG_GEN / FACETV.ZIP / SCRENMSG.H < prev    next >
C/C++ Source or Header  |  1993-12-09  |  1KB  |  48 lines

  1. /************************************************************************
  2. **
  3. ** @(#)screnmsg.h    08/12/93    Chris Ahlstrom
  4. **
  5. **    An interface between C and C++ (in the guise of Turbo Vision).
  6. **
  7. *************************************************************************/
  8.  
  9. #ifndef SCRENMSG_h                    /* { SCRENMSG_h    */
  10. #define SCRENMSG_h
  11.  
  12.  
  13. /************************************************************************
  14. ** C/C++ screenmsg() function
  15. **
  16. **    This header file supports two versions of the same function...
  17. ** a name-mangled C++ version, and a non-name mangled C version.
  18. ** Since the selection must be made at compile and link time,
  19. ** we must define this function as a macro.
  20. **
  21. **    Primitive C callers will not need to know of the existence and
  22. ** usage of Turbo Vision.  I swear it.
  23. **
  24. ** Format:
  25. **
  26. **   int screenmsg(a, b, c);
  27. **
  28. **    (a) int use_io        Whether to ignore output
  29. **    (b) void *handle        Bogus for now
  30. **    (c) char *string        String to display
  31. **
  32. **    This macro is defined in either tvscreen.h or cnscreen.h.
  33. **
  34. *************************************************************************/
  35.  
  36. #ifdef USE_TURBO_VISION            /* { USE_TURBO_VISION        */
  37.  
  38.     #include "tvscreen.h"            /* Turbo Vision support    */
  39.  
  40. #else                    /* }{ USE_TURBO_VISION        */
  41.  
  42.     #include "cnscreen.h"            /* console i/o support    */
  43.  
  44. #endif                    /* } USE_TURBO_VISION        */
  45.  
  46.  
  47. #endif                            /* } SCRENMSG_h    */
  48.