MeVisLab Toolbox Reference
mlMacros.h File Reference
#include "MeVisLabVersion.h"

Go to the source code of this file.

Macros

#define ML_DISALLOW_COPY_AND_ASSIGN(className)
 Defines basic macros. More...
 
#define ML_FRIEND_TEST(test_case_name, test_name)    friend class test_case_name##_##test_name##_Test
 Can be used to make a specific class a friend of a given test to allow testing of protected functionality with GoogleTest. More...
 
#define ML_UNIX_ONLY_EXPORT(A)
 A macro that passes the given export macro through for UNIX compilers, where export macros are sometimes required. More...
 
#define ML_FORCE_INLINE   __forceinline
 Forcing the use of 'inline' for methods. More...
 

Macro Definition Documentation

◆ ML_FORCE_INLINE

#define ML_FORCE_INLINE   __forceinline

Forcing the use of 'inline' for methods.

Note that this currently only works on Windows. The same does not work for UNIX systems because there, the forcing of inline needs to be states as an __attribute behind the method's signature (as far as we know).

Definition at line 54 of file mlMacros.h.

◆ ML_UNIX_ONLY_EXPORT

#define ML_UNIX_ONLY_EXPORT (   A)

A macro that passes the given export macro through for UNIX compilers, where export macros are sometimes required.

Windows does not require them. In the future, this can be fixed by using Windows compatibility for export symbols, but the current GCCs have a crash bug. For those few classes, use this macro around the exported symbols and add it before the class, and it will be exported only on UNIX systems. Do not pass anything on windows platforms.

Definition at line 43 of file mlMacros.h.