Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Unified Diff: native_client_sdk/src/libraries/utils/macros.h

Issue 10829027: [NaCl SDK] Add nacl_mounts to NaCl SDK build. Experimental for now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync again Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « native_client_sdk/src/libraries/utils/auto_lock.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/libraries/utils/macros.h
diff --git a/native_client_sdk/src/libraries/utils/macros.h b/native_client_sdk/src/libraries/utils/macros.h
index 40f56848acea3074e5544ded492b52b5f3bbcd44..97602b3538ebc1b02dee1a6be584afe295d4f80d 100644
--- a/native_client_sdk/src/libraries/utils/macros.h
+++ b/native_client_sdk/src/libraries/utils/macros.h
@@ -6,18 +6,20 @@
#define LIBRARIES_UTILS_MACROS_H_
/**
-* A macro to disallow the evil copy constructor and operator= functions
-* This should be used in the private: declarations for a class.
-*/
+ * A macro to disallow the evil copy constructor and operator= functions
+ * This should be used in the private: declarations for a class.
+ */
#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
TypeName(const TypeName&); \
void operator=(const TypeName&)
+/** returns the size of a member of a struct. */
+#define MEMBER_SIZE(struct_name, member) sizeof(((struct_name*)0)->member)
/**
-* Macros to prevent name mangling of defnitions, allowing them to be
-* referenced from C.
-*/
+ * Macros to prevent name mangling of defnitions, allowing them to be
+ * referenced from C.
+ */
#ifdef __cplusplus
# define EXTERN_C_BEGIN extern "C" {
# define EXTERN_C_END }
« no previous file with comments | « native_client_sdk/src/libraries/utils/auto_lock.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698