Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
util_macros.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DISALLOW_COPY_AND_ASSIGN(Typename)
 
#define mockable
 Wrap class functions that are not already virtual in this function if you wish to mock them.
 
#define final_mockable   final
 Use this instead of final if you want to mock a function when unit testing.
 
#define UNUSED(var)   (void)(var)
 

Macro Definition Documentation

◆ DISALLOW_COPY_AND_ASSIGN

#define DISALLOW_COPY_AND_ASSIGN (   Typename)
Value:
Typename(const Typename &) = delete; \
Typename &operator=(const Typename &) = delete;

◆ final_mockable

#define final_mockable   final

Use this instead of final if you want to mock a function when unit testing.

◆ mockable

#define mockable

Wrap class functions that are not already virtual in this function if you wish to mock them.

◆ UNUSED

#define UNUSED (   var)    (void)(var)