summaryrefslogtreecommitdiff
path: root/base/macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/macros.h')
-rw-r--r--base/macros.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/base/macros.h b/base/macros.h
index 4c62300e32..b5b03bb226 100644
--- a/base/macros.h
+++ b/base/macros.h
@@ -17,6 +17,8 @@
#include <android-base/macros.h>
#endif // defined(ANDROID)
+// We define following macros conditionally as they may be defined by another libraries.
+
// Put this in the declarations for a class to be uncopyable.
#if !defined(DISALLOW_COPY)
#define DISALLOW_COPY(TypeName) \
@@ -29,9 +31,8 @@
void operator=(const TypeName&) = delete
#endif
-// A macro to disallow the copy constructor and operator= functions
-// This should be used in the private: declarations for a class
-// We define this macro conditionally as it may be defined by another libraries.
+// A macro to disallow the copy constructor and operator= functions.
+// This should be used in the private: declarations for a class.
#if !defined(DISALLOW_COPY_AND_ASSIGN)
#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
TypeName(const TypeName&) = delete; \