AGX Dynamics  2.35.0.1
agxLua/export.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2022. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 #ifndef AGXLUA_EXPORT_H
18 #define AGXLUA_EXPORT_H
19 
20 #include <agx/config.h>
21 
22 
23 #ifdef _WIN32
24 
25 #if AGX_DYNAMIC() && defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__)
26 # if defined( AGX_LIBRARY_STATIC )
27 # define AGXLUA_EXPORT
28 # elif defined( AGXLUA_LIBRARY )
29 # define AGXLUA_EXPORT __declspec(dllexport)
30 # else
31 # define AGXLUA_EXPORT __declspec(dllimport)
32 # endif
33 #else
34 # define AGXLUA_EXPORT
35 #endif
36 
37 #else
38  // Non Win32
39  #if __GNUC__ >= 4
40  #define AGXLUA_EXPORT __attribute__ ((visibility("default")))
41  #else
42  #define AGXLUA_EXPORT
43  #endif
44 #endif
45 
46 #endif