2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2005-11-23 17:16:33 +03:00
|
|
|
|
|
|
|
#ifndef xrecore_h__
|
|
|
|
#define xrecore_h__
|
|
|
|
|
|
|
|
#include "nscore.h"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Import/export macros for libXUL APIs.
|
|
|
|
*/
|
|
|
|
#ifdef XPCOM_GLUE
|
|
|
|
#define XRE_API(type, name, params) \
|
2005-11-28 18:04:32 +03:00
|
|
|
typedef type (NS_FROZENCALL * name##Type) params; \
|
2005-11-23 17:16:33 +03:00
|
|
|
extern name##Type name NS_HIDDEN;
|
2013-07-12 16:56:54 +04:00
|
|
|
#elif defined(IMPL_LIBXUL)
|
2005-11-23 17:16:33 +03:00
|
|
|
#define XRE_API(type, name, params) EXPORT_XPCOM_API(type) name params;
|
|
|
|
#else
|
|
|
|
#define XRE_API(type, name, params) IMPORT_XPCOM_API(type) name params;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // xrecore_h__
|