18 lines
441 B
C
18 lines
441 B
C
|
#pragma once
|
||
|
#ifndef MESSMER_CPP_UTILS_MACROS_H_
|
||
|
#define MESSMER_CPP_UTILS_MACROS_H_
|
||
|
|
||
|
/**
|
||
|
* Disallow the copy and assignment constructors of a class
|
||
|
*/
|
||
|
#define DISALLOW_COPY_AND_ASSIGN(Class) \
|
||
|
Class(const Class &rhs) = delete; \
|
||
|
Class &operator=(const Class &rhs) = delete;
|
||
|
|
||
|
/**
|
||
|
* Declare a function parameter as intentionally unused to get rid of the compiler warning
|
||
|
*/
|
||
|
#define UNUSED(expr) (void)(expr)
|
||
|
|
||
|
#endif
|