ML 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.
 
#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.
 
#define ML_UNIX_ONLY_EXPORT(A)
 A macro passing the given export macro through in the case of UNIX compilers where in a few cases export macros must be used where windows does not require them.
 
#define ML_FORCE_INLINE   __forceinline
 Forcing the use of 'inline' for methods.
 

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 passing the given export macro through in the case of UNIX compilers where in a few cases export macros must be used where windows does not require them.

This in future can be fixed by using windows compatibility for export symbol but the current GCCs have a crash bug. For those few classes uses 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.