home *** CD-ROM | disk | FTP | other *** search
- /************************************************************
- *
- * Created: Saturday, December 5, 1992 6:43:00 PM
- * NeoMacMetro.h
- * Macintosh Metro C++ -specific definitions
- *
- * Copyright © Neologic Systems 1992-1993. All Rights Reserved.
- * All rights reserved
- *
- ***********************************************************/
- #pragma once /* Include this file only once */
-
- #include <OSUtils.h>
- #include <new.h>
-
- // Define qNeoTCL when building NeoAccess for use with the THINK Class Library
- // #define qNeoTCL 1
-
- // Define qNeoStandAlone when building NeoAccess for use without a class library
- // #define qNeoStandAlone 1
-
- typedef void (*NeoNewHandler)(void);
- extern void NeoOutOfMemHandler(void);
- #define NeoSetNewHandler(h) set_new_handler(h)
-
- #define VOLATILE(a) ((void) &a)
-
- #include "NeoPowerPlant.h"
-
- class CNeoMetaClass;
- class CNeoFreeList;
-
- // Macros for universal floating point conversions.
- #define NeoFloat float
- #define NeoUFloat float
- #define NeoUFloat2Native(s, d) d = (s)
- #define NeoNative2UFloat(s, d) d = (s)
-
- #define NeoDouble double
- #if __DOUBLE_8__
- #define NeoUDouble double
- #define NeoUDouble2Native(s, d) d = (NeoDouble)(s)
- #define NeoNative2UDouble(s, d) d = (NeoUDouble)(s)
- #else
- #define NeoUDouble double
- #define NeoUDouble2Native(s, d) d = (NeoDouble)(s)
- #define NeoNative2UDouble(s, d) d = (NeoUDouble)(s)
- #endif
-
- #define NeoLongDouble long double
- #define NeoULongDouble long double
- #define NeoULDouble2Native(s, d) (d) = (NeoULongDouble)(s)
- #define NeoNative2ULDouble(s, d) (d) = (NeoLongDouble)(s)
-
-