HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
APEX_CallbackPlugin.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: APEX_CallbackPlugin.h (APEX Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __APEX_CALLBACK_PLUGIN_H__
12 #define __APEX_CALLBACK_PLUGIN_H__
13 
14 /// @file
15 ///
16 /// Declare `addApexFunction()` entry point for plugins
17 ///
18 
19 #include "APEX_Registry.h"
20 
21 #if defined(WIN32)
22  #define APEX_VISIBILITY_EXPORT __declspec(dllexport)
23 #else
24  #define APEX_VISIBILITY_EXPORT __attribute__((visibility("default")))
25 #endif
26 #ifndef APEX_VISIBILITY_EXPORT
27  #define APEX_VISIBILITY_EXPORT
28 #endif
29 
30 namespace apex
31 {
32 class APEX_Registry;
33 
34 extern "C" APEX_VISIBILITY_EXPORT void addApexFunction(APEX_Registry &reg);
35 
36 } // end namespace apex
37 
38 #endif // __APEX_CALLBACK_PLUGIN_H__
#define APEX_VISIBILITY_EXPORT
APEX_VISIBILITY_EXPORT void addApexFunction(APEX_Registry &reg)