Treehopper C++ API
Go to the documentation of this file.
1 // The following ifdef block is the standard way of creating macros which make exporting
2 // from a DLL simpler. All files within this DLL are compiled with the TREEHOPPER_EXPORTS
3 // symbol defined on the command line. This symbol should not be defined on any project
4 // that uses this DLL. This way any other project whose source files include this file see
5 // TREEHOPPER_API functions as being imported from a DLL, whereas this DLL sees symbols
6 // defined with this macro as being exported.
8 #ifdef _WIN32
9 #define TREEHOPPER_API __declspec(dllexport)
10 #else
11 #define TREEHOPPER_API __attribute__ ((dllexport))
12 #endif
13 #else
14 #ifdef _WIN32
15 #define TREEHOPPER_API __declspec(dllimport)
16 #else
17 #define TREEHOPPER_API __attribute__ ((dllimport))
18 #endif
19 #endif