Mac OS 9
ConditionalMacros.h File Reference

Set up for compiler independent conditionals. More...

Go to the source code of this file.

Macros

#define UNIVERSAL_INTERFACES_VERSION   0x0341
 
#define TARGET_CPU_PPC   0
 
#define TARGET_CPU_68K   0
 
#define TARGET_CPU_X86   0
 
#define TARGET_CPU_MIPS   0
 
#define TARGET_CPU_SPARC   0
 
#define TARGET_CPU_ALPHA   0
 
#define PRAGMA_IMPORT   0
 
#define PRAGMA_STRUCT_ALIGN   0
 
#define PRAGMA_ONCE   0
 
#define PRAGMA_STRUCT_PACK   0
 
#define PRAGMA_STRUCT_PACKPUSH   0
 
#define PRAGMA_ENUM_PACK   0
 
#define PRAGMA_ENUM_ALWAYSINT   0
 
#define PRAGMA_ENUM_OPTIONS   0
 
#define FOUR_CHAR_CODE(x)   (x)
 
#define TYPE_LONGDOUBLE_IS_DOUBLE   1
 
#define TYPE_EXTENDED   0
 
#define TYPE_LONGLONG   0
 
#define TYPE_BOOL   0
 
#define FUNCTION_PASCAL   0
 
#define FUNCTION_DECLSPEC   0
 
#define FUNCTION_WIN32CC   0
 
#define _type   extern _type
 
#define _type   extern _type
 
#define EXTERN_API_STDCALL(_type)   extern _type
 
#define EXTERN_API_C_STDCALL(_type)   extern _type
 
#define DEFINE_API(_type)   _type
 
#define DEFINE_API_C(_type)   _type
 
#define DEFINE_API_STDCALL(_type)   _type
 
#define DEFINE_API_C_STDCALL(_type)   _type
 
#define CALLBACK_API(_type, _name)   _type(*_name)
 
#define CALLBACK_API_C(_type, _name)   _type(*_name)
 
#define CALLBACK_API_STDCALL(_type, _name)   _type(*_name)
 
#define CALLBACK_API_C_STDCALL(_type, _name)   _type(*_name)
 
#define pascal
 
#define CALLBACK_API_REGISTER68K(_type, _name, _params)    CALLBACK_API(_type, _name) _params
 
#define TARGET_API_MAC_OS8   0
 
#define TARGET_API_MAC_CARBON   0
 
#define TARGET_API_MAC_OSX   0
 
#define TARGET_CARBON   0
 
#define GENERATINGPOWERPC   TARGET_CPU_PPC
 
#define GENERATING68K   TARGET_CPU_68K
 
#define GENERATING68881   TARGET_RT_MAC_68881
 
#define GENERATINGCFM   TARGET_RT_MAC_CFM
 
#define CFMSYSTEMCALLS   TARGET_RT_MAC_CFM
 
#define CGLUESUPPORTED   0
 
#define OLDROUTINELOCATIONS   0
 
#define PRAGMA_ALIGN_SUPPORTED   PRAGMA_STRUCT_ALIGN
 
#define PRAGMA_IMPORT_SUPPORTED   PRAGMA_IMPORT
 
#define OLDROUTINENAMES   0
 
#define ONEWORDINLINE(w1)
 
#define TWOWORDINLINE(w1, w2)
 
#define THREEWORDINLINE(w1, w2, w3)
 
#define FOURWORDINLINE(w1, w2, w3, w4)
 
#define FIVEWORDINLINE(w1, w2, w3, w4, w5)
 
#define SIXWORDINLINE(w1, w2, w3, w4, w5, w6)
 
#define SEVENWORDINLINE(w1, w2, w3, w4, w5, w6, w7)
 
#define EIGHTWORDINLINE(w1, w2, w3, w4, w5, w6, w7, w8)
 
#define NINEWORDINLINE(w1, w2, w3, w4, w5, w6, w7, w8, w9)
 
#define TENWORDINLINE(w1, w2, w3, w4, w5, w6, w7, w8, w9, w10)
 
#define ELEVENWORDINLINE(w1, w2, w3, w4, w5, w6, w7, w8, w9, w10, w11)
 
#define TWELVEWORDINLINE(w1, w2, w3, w4, w5, w6, w7, w8, w9, w10, w11, w12)
 
#define OPAQUE_TOOLBOX_STRUCTS   0
 
#define OPAQUE_UPP_TYPES   0
 
#define ACCESSOR_CALLS_ARE_FUNCTIONS   0
 
#define CALL_NOT_IN_CARBON   1
 
#define MIXEDMODE_CALLS_ARE_FUNCTIONS   0
 

Detailed Description

Set up for compiler independent conditionals.

Introduced In: Universal Interface Files
Avaliable From: Universal Interfaces 3.4.1
Copyright: © 1993-2001 by Apple Computer, Inc., all rights reserved

For bug reports, consult the following page on the World Wide Web:

http://developer.apple.com/bugreporter/

Macro Definition Documentation

◆ _type [1/2]

#define _type   extern _type

compiler supports no extensions

◆ _type [2/2]

#define _type   extern _type

compiler supports no extensions

◆ ACCESSOR_CALLS_ARE_FUNCTIONS

#define ACCESSOR_CALLS_ARE_FUNCTIONS   0

!defined(OPAQUE_UPP_TYPES)

◆ CALL_NOT_IN_CARBON

#define CALL_NOT_IN_CARBON   1

!defined(ACCESSOR_CALLS_ARE_FUNCTIONS) It's possible to have ACCESSOR_CALLS_ARE_FUNCTIONS set to true and OPAQUE_TOOLBOX_STRUCTS set to false, but not the other way around, so make sure the defines are not set this way. OPAQUE_TOOLBOX_STRUCTS && !ACCESSOR_CALLS_ARE_FUNCTIONS

◆ CALLBACK_API_REGISTER68K

#define CALLBACK_API_REGISTER68K (   _type,
  _name,
  _params 
)     CALLBACK_API(_type, _name) _params

On classic 68k, some callbacks are register based. The only way to write them in C is to make a function with no parameters and a void return. Inside the function you manually get and set registers.

◆ GENERATINGPOWERPC

#define GENERATINGPOWERPC   TARGET_CPU_PPC

TARGET_API_MAC_CARBON && !TARGET_API_MAC_OS8 !defined(TARGET_CARBON)

◆ MIXEDMODE_CALLS_ARE_FUNCTIONS

#define MIXEDMODE_CALLS_ARE_FUNCTIONS   0

!defined(CALL_NOT_IN_CARBON)

◆ OLDROUTINELOCATIONS

#define OLDROUTINELOCATIONS   0

!defined(CGLUESUPPORTED)

◆ OLDROUTINENAMES

#define OLDROUTINENAMES   0

!TARGET_API_MAC_CARBON

◆ ONEWORDINLINE

#define ONEWORDINLINE (   w1)

!defined(OLDROUTINENAMES)

◆ OPAQUE_UPP_TYPES

#define OPAQUE_UPP_TYPES   0

!defined(OPAQUE_TOOLBOX_STRUCTS)

◆ PRAGMA_ALIGN_SUPPORTED

#define PRAGMA_ALIGN_SUPPORTED   PRAGMA_STRUCT_ALIGN

!defined(OLDROUTINELOCATIONS)

◆ TARGET_CARBON

#define TARGET_CARBON   0

TARGET_OS_MAC Support source code still using TARGET_CARBON

◆ TARGET_CPU_PPC

#define TARGET_CPU_PPC   0

Unknown compiler, perhaps set up from the command line (e.g. -d TARGET_CPU_MIPS , etc.) NOTE: If your compiler errors out here then support for your compiler has not yet been added to ConditionalMacros.h.

ConditionalMacros.h is designed to be plug-and-play. It auto detects which compiler is being run and configures the TARGET_ conditionals appropriately.

The short term work around is to set the TARGET_CPU_ and TARGET_OS_ on the command line to the compiler (e.g. d TARGET_CPU_MIPS -d TARGET_OS_UNIX)

      The long term solution is to add a new case to this file which
    auto detects your compiler and sets up the TARGET_ conditionals.
      If you do this, send the changes you made to devsupport@apple.com
     to get it integrated into the next release of ConditionalMacros.h.