MeVisLab Toolbox Reference
mlMacros.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2009, MeVis Medical Solutions AG
4 **
5 ** The user may use this file in accordance with the license agreement provided with
6 ** the Software or, alternatively, in accordance with the terms contained in a
7 ** written agreement between the user and MeVis Medical Solutions AG.
8 **
9 ** For further information use the contact form at https://www.mevislab.de/contact
10 **
11 **************************************************************************************/
12 
13 #ifndef ML_MACROS_H
14 #define ML_MACROS_H
15 
16 #include "MeVisLabVersion.h"
17 
19 
23 #define ML_DISALLOW_COPY_AND_ASSIGN(className) \
24  private: \
25  className(const className&) = delete; \
26  className& operator=(const className &) = delete;
27 
32 #define ML_FRIEND_TEST(test_case_name, test_name) \
33  friend class test_case_name##_##test_name##_Test
34 
35 
41 #if defined(WIN32)
43  #define ML_UNIX_ONLY_EXPORT(A)
44 #else
46  #define ML_UNIX_ONLY_EXPORT(A) A
47 #endif
48 
49 
53 #ifdef WIN32
54  #define ML_FORCE_INLINE __forceinline
55 #else
56  #define ML_FORCE_INLINE inline
57 #endif
58 
59 
60 #endif
61 
62