Changeset 15932 in vbox
- Timestamp:
- Jan 14, 2009 10:13:45 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/cdefs.h
r15834 r15932 4 4 5 5 /* 6 * Copyright (C) 2006-200 7Sun Microsystems, Inc.6 * Copyright (C) 2006-2009 Sun Microsystems, Inc. 7 7 * 8 8 * This file is part of VirtualBox Open Source Edition (OSE), as … … 101 101 # define RT_ARCH_X86 102 102 # else /* PORTME: append test for new archs. */ 103 # error "Check what predefined stuffyour compiler uses to indicate architecture."103 # error "Check what predefined macros your compiler uses to indicate architecture." 104 104 # endif 105 105 #elif defined(RT_ARCH_X86) && defined(RT_ARCH_AMD64) /* PORTME: append new archs. */ … … 123 123 # define __X86__ 124 124 # else 125 # error "Check what predefined stuffyour compiler uses to indicate architecture."125 # error "Check what predefined macros your compiler uses to indicate architecture." 126 126 # endif 127 127 #elif defined(__X86__) && defined(__AMD64__) … … 148 148 */ 149 149 #if !defined(IN_RING3) && !defined(IN_RING0) && !defined(IN_RC) && !defined(IN_RC) 150 # error "You must define dwhich context the compiled code should run in; IN_RING3, IN_RING0 or IN_RC"150 # error "You must define which context the compiled code should run in; IN_RING3, IN_RING0 or IN_RC" 151 151 #endif 152 152 #if (defined(IN_RING3) && (defined(IN_RING0) || defined(IN_RC)) ) \ … … 250 250 251 251 /** @def R3R0PTRTYPE 252 * Declare a pointer which is used in HC, is explicit ely valid in ring 3 and 0,252 * Declare a pointer which is used in HC, is explicitly valid in ring 3 and 0, 253 253 * but appears in structure(s) used by both HC and GC. The main purpose is to 254 254 * make sure structures have the same size when built for different architectures. … … 281 281 * identifier name. The suffix is HC or GC. 282 282 * 283 * This is macro should only be used in shared code to avoid a for rest of ifdefs.283 * This is macro should only be used in shared code to avoid a forest of ifdefs. 284 284 * @param var Identifier name. 285 285 * @deprecated Use CTX_SUFF. Do NOT use this for new code. … … 289 289 * identifier name. The suffix is HC or GC. 290 290 * 291 * This is macro should only be used in shared code to avoid a for rest of ifdefs.291 * This is macro should only be used in shared code to avoid a forest of ifdefs. 292 292 * @param var Identifier name. 293 293 * @deprecated Use CTX_SUFF. Do NOT use this for new code. … … 305 305 * identifier name. The suffix is R3, R0 or GC. 306 306 * 307 * This is macro should only be used in shared code to avoid a for rest of ifdefs.307 * This is macro should only be used in shared code to avoid a forest of ifdefs. 308 308 * @param var Identifier name. 309 309 * @deprecated Use CTX_SUFF. Do NOT use this for new code. … … 321 321 * identifier name. The suffix is R3, R0 or RC. 322 322 * 323 * This is macro should only be used in shared code to avoid a for rest of ifdefs.323 * This is macro should only be used in shared code to avoid a forest of ifdefs. 324 324 * @param var Identifier name. 325 325 * … … 339 339 * The suffix thus is R3 or RZ. 340 340 * 341 * This is macro should only be used in shared code to avoid a for rest of ifdefs.341 * This is macro should only be used in shared code to avoid a forest of ifdefs. 342 342 * @param var Identifier name. 343 343 * … … 355 355 * The middle name is HC or GC. 356 356 * 357 * This is macro should only be used in shared code to avoid a for rest of ifdefs.357 * This is macro should only be used in shared code to avoid a forest of ifdefs. 358 358 * @param first First name. 359 359 * @param last Surname. … … 363 363 * The middle name is HC or GC. 364 364 * 365 * This is macro should only be used in shared code to avoid a for rest of ifdefs.365 * This is macro should only be used in shared code to avoid a forest of ifdefs. 366 366 * @param first First name. 367 367 * @param last Surname. … … 380 380 * The middle name is R3, R0 or GC. 381 381 * 382 * This is macro should only be used in shared code to avoid a for rest of ifdefs.382 * This is macro should only be used in shared code to avoid a forest of ifdefs. 383 383 * @param first First name. 384 384 * @param last Surname. … … 397 397 * The middle name is R3, R0 or RC. 398 398 * 399 * This is macro should only be used in shared code to avoid a for rest of ifdefs.399 * This is macro should only be used in shared code to avoid a forest of ifdefs. 400 400 * @param first First name. 401 401 * @param last Surname. … … 414 414 * The middle name thus is either R3 or RZ. 415 415 * 416 * This is macro should only be used in shared code to avoid a for rest of ifdefs.416 * This is macro should only be used in shared code to avoid a forest of ifdefs. 417 417 * @param first First name. 418 418 * @param last Surname. … … 649 649 650 650 /** @def IN_RT_STATIC 651 * Used to in idicate whether we're linking against a static IPRT651 * Used to indicate whether we're linking against a static IPRT 652 652 * or not. The IPRT symbols will be declared as hidden (if 653 653 * supported). Note that this define has no effect without setting … … 746 746 * decorate the symbols such that they don't conflict the ones in the 747 747 * other CRTs. The result of such conflicts / duplicate symbols can 748 * confuse the dynamic loader on unix like systems.748 * confuse the dynamic loader on Unix like systems. 749 749 * 750 750 * Define RT_WITHOUT_NOCRT_WRAPPERS to drop the wrapping. … … 788 788 * 789 789 * - These macros are meant to be used in places that get executed a lot. It 790 * is wasteful to make predictions in code that is executed seldomly (e.g.791 * at subsystem initialization time) as the basic block reord ing that this792 * affec s can often generate larger code.790 * is wasteful to make predictions in code that is executed rarely (e.g. 791 * at subsystem initialization time) as the basic block reordering that this 792 * affects can often generate larger code. 793 793 * 794 794 * - Note that RT_SUCCESS() and RT_FAILURE() already makes use of RT_LIKELY() … … 863 863 * @param uAlignment The alignment. Power of two! 864 864 * @param type Integer type to use while aligning. 865 * @remark This macro is the prefer ed alignment macro, it doesn't have any of the pitfalls RT_ALIGN has.865 * @remark This macro is the preferred alignment macro, it doesn't have any of the pitfalls RT_ALIGN has. 866 866 */ 867 867 #define RT_ALIGN_T(u, uAlignment, type) ( ((type)(u) + ((uAlignment) - 1)) & ~(type)((uAlignment) - 1) ) … … 933 933 * This differs from the usual offsetof() in that it's not relying on builtin 934 934 * compiler stuff and thus can use variables in arrays the structure may 935 * contain. If in this usful to determinthe sizes of structures ending935 * contain. This is useful to determine the sizes of structures ending 936 936 * with a variable length field. 937 937 * … … 947 947 * This differs from the usual offsetof() in that it's not relying on builtin 948 948 * compiler stuff and thus can use variables in arrays the structure may 949 * contain. If in this usful to determinthe sizes of structures ending949 * contain. This is useful to determine the sizes of structures ending 950 950 * with a variable length field. 951 951 * … … 1447 1447 * 1448 1448 * Use this for instrumenting a debugging session only! 1449 * No com itted code shall use Breakpoint().1449 * No committed code shall use Breakpoint(). 1450 1450 */ 1451 1451 #ifdef __GNUC__
Note:
See TracChangeset
for help on using the changeset viewer.