]>
git.saurik.com Git - apple/objc4.git/blob - runtime/objc-config.h
2 * Copyright (c) 1999-2002, 2005-2008 Apple Inc. All Rights Reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
21 * @APPLE_LICENSE_HEADER_END@
24 #include <TargetConditionals.h>
26 // Define NO_GC to disable garbage collection.
27 // Be sure to edit OBJC_NO_GC in objc-auto.h as well.
28 #if TARGET_OS_EMBEDDED || TARGET_OS_WIN32
32 // Define NO_ENVIRON to disable getenv().
33 #if TARGET_OS_EMBEDDED
37 // Define NO_ZONES to disable malloc zone support in NXHashTable.
38 #if TARGET_OS_EMBEDDED
42 // Define NO_MOD to avoid the mod operator in NXHashTable and objc-sel-set.
47 // Define NO_BUILTINS to disable the builtin selector table from dyld
49 # define NO_BUILTINS 1
52 // Define NO_DEBUGGER_MODE to disable lock-avoiding execution for debuggers
54 # define NO_DEBUGGER_MODE 1
59 // Define NO_FIXUP to use non-fixup messaging for OBJC2.
64 // Define NO_VTABLE to disable vtable dispatch for OBJC2.
65 #if defined(NO_FIXUP) || defined(__ppc64__)
69 // Define NO_ZEROCOST_EXCEPTIONS to use sjlj exceptions for OBJC2.
70 // Be sure to edit objc-exception.h as well (objc_add/removeExceptionHandler)
72 # define NO_ZEROCOST_EXCEPTIONS 1
78 // OBJC_INSTRUMENTED controls whether message dispatching is dynamically
79 // monitored. Monitoring introduces substantial overhead.
80 // NOTE: To define this condition, do so in the build command, NOT by
81 // uncommenting the line here. This is because objc-class.h heeds this
82 // condition, but objc-class.h can not #include this file (objc-config.h)
83 // because objc-class.h is public and objc-config.h is not.
84 //#define OBJC_INSTRUMENTED
86 // Get the nice macros for subroutine calling, etc.
87 // Not available on all architectures. Not needed
88 // (by us) on some configurations.
89 #if defined (__i386__) || defined (i386)
90 # include <architecture/i386/asm_help.h>
91 #elif defined (__ppc__) || defined(ppc)
92 # include <architecture/ppc/asm_help.h>