mangling.h revision ad328b84daa9bc249fcad5fbe53063d3f418cb22
/** @file
* IPRT - Symbol Mangling.
*
* This header is used to mangle public IPRT symbol to make it possible to have
* several IPRT version loaded into one symbol space at the same time. To
* enable symbol mangling you create a header which the compiler includes for
* every compilation unit (check out the -include option of gcc). Your header
* will define RT_MANGLER(name) and then include this header to set up the
* actual mappings.
*/
/*
* Copyright (C) 2011-2012 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*
* The contents of this file may alternatively be used under the terms
* of the Common Development and Distribution License Version 1.0
* (CDDL) only, as it comes in the "COPYING.CDDL" file of the
* VirtualBox OSE distribution, in which case the provisions of the
* CDDL are applicable instead of those of the GPL.
*
* You may elect to license modified versions of this file under the
* terms and conditions of either the GPL or the CDDL or both.
*/
#ifndef ___iprt_mangling_h
#define ___iprt_mangling_h
#ifndef RT_MANGLER
# error "RT_MANGLER is not defined."
#endif
#ifndef DOXYGEN_RUNNING
/** @def RT_WITH_MANGLING
* Indicates that we're mangling symbols. */
# define RT_WITH_MANGLING
/*
* Stable functions (alphabetical order):
*/
# define RTLockValidatorClassEnforceStrictReleaseOrder RT_MANGLER(RTLockValidatorClassEnforceStrictReleaseOrder)
# define RTLockValidatorIsBlockedThreadInValidator RT_MANGLER(RTLockValidatorIsBlockedThreadInValidator)
# define RTLockValidatorRecExclCheckOrderAndBlocking RT_MANGLER(RTLockValidatorRecExclCheckOrderAndBlocking)
# define RTLockValidatorRecExclReleaseOwnerUnchecked RT_MANGLER(RTLockValidatorRecExclReleaseOwnerUnchecked)
# define RTLockValidatorRecSharedCheckAndRelease RT_MANGLER(RTLockValidatorRecSharedCheckAndRelease)
# define RTLockValidatorRecSharedCheckOrderAndBlocking RT_MANGLER(RTLockValidatorRecSharedCheckOrderAndBlocking)
/*
* Stable variables (alphabetical order):
*/
/*
* Unstable functions (alphabetical order):
*/
/** @todo the list is incomplete! See the .def files + libraries. */
/*
* Unstable variables (alphabetical order):
*/
/* none */
#endif /* !DOXYGEN_RUNNING */
#endif