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

Unified Diff: ipc/struct_constructor_macros.h

Issue 10067023: Add support for default values of IPC_STRUCT_MEMBER. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tsepez feedback Created 8 years, 8 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 | « ipc/param_traits_write_macros.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/struct_constructor_macros.h
diff --git a/ipc/struct_constructor_macros.h b/ipc/struct_constructor_macros.h
index ee056a356a83e7957dd919eff8e90e14544a3b56..4144302f15155b6b832f703bdef9acd2d68fbd3c 100644
--- a/ipc/struct_constructor_macros.h
+++ b/ipc/struct_constructor_macros.h
@@ -16,7 +16,7 @@
#define IPC_STRUCT_BEGIN(struct_name) struct_name::struct_name() : NoParams()
#define IPC_STRUCT_BEGIN_WITH_PARENT(struct_name, parent) \
struct_name::struct_name() : parent()
-#define IPC_STRUCT_MEMBER(type, name) , name()
+#define IPC_STRUCT_MEMBER(type, name, ...) , name(__VA_ARGS__)
#define IPC_STRUCT_END() {}
#endif // IPC_STRUCT_CONSTRUCTOR_MACROS_H_
« no previous file with comments | « ipc/param_traits_write_macros.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698