home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 April / macformat-023.iso / Shareware City / Developers / NeoPersist 3.0.8 folder / NeoIncludes / Macintosh / NeoMacMetro.h < prev   
Encoding:
C/C++ Source or Header  |  1994-10-13  |  1.5 KB  |  55 lines  |  [TEXT/CAsm]

  1. /************************************************************
  2.  *
  3.  *    Created: Saturday, December 5, 1992 6:43:00 PM
  4.  *    NeoMacMetro.h
  5.  *    Macintosh Metro C++ -specific definitions
  6.  *
  7.  *    Copyright © Neologic Systems 1992-1993. All Rights Reserved.
  8.  *    All rights reserved
  9.  *
  10.  ***********************************************************/
  11. #pragma once            /* Include this file only once */
  12.  
  13. #include <OSUtils.h>
  14. #include <new.h>
  15.  
  16. // Define qNeoTCL when building NeoAccess for use with the THINK Class Library
  17. // #define qNeoTCL 1
  18.  
  19. // Define qNeoStandAlone when building NeoAccess for use without a class library
  20. // #define qNeoStandAlone 1
  21.  
  22. typedef void (*NeoNewHandler)(void);
  23. extern void NeoOutOfMemHandler(void);
  24. #define NeoSetNewHandler(h)    set_new_handler(h)
  25.  
  26. #define VOLATILE(a)                ((void) &a)
  27.  
  28. #include "NeoPowerPlant.h"
  29.  
  30. class                            CNeoMetaClass;
  31. class                            CNeoFreeList;
  32.  
  33. // Macros for universal floating point conversions.
  34. #define    NeoFloat                float
  35. #define NeoUFloat                float
  36. #define    NeoUFloat2Native(s, d)    d = (s)
  37. #define    NeoNative2UFloat(s, d)    d = (s)
  38.  
  39. #define NeoDouble                double
  40. #if __DOUBLE_8__
  41. #define NeoUDouble                double
  42. #define NeoUDouble2Native(s, d)    d = (NeoDouble)(s)
  43. #define NeoNative2UDouble(s, d)    d = (NeoUDouble)(s)
  44. #else
  45. #define NeoUDouble                double
  46. #define NeoUDouble2Native(s, d)    d = (NeoDouble)(s)
  47. #define NeoNative2UDouble(s, d)    d = (NeoUDouble)(s)
  48. #endif
  49.  
  50. #define    NeoLongDouble                long double
  51. #define NeoULongDouble                long double
  52. #define    NeoULDouble2Native(s, d)    (d) = (NeoULongDouble)(s)
  53. #define    NeoNative2ULDouble(s, d)    (d) = (NeoLongDouble)(s)  
  54.  
  55.