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 } |