libcryfs/macros.h
2015-10-15 12:58:16 +02:00

18 lines
439 B
C

#pragma once
#ifndef MESSMER_CPPUTILS_MACROS_H_
#define MESSMER_CPPUTILS_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