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

Unified Diff: ppapi/c/pp_module.h

Issue 5674004: Add compile assertions to enforce the sizes of all structs and enums in the C... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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
Index: ppapi/c/pp_module.h
===================================================================
--- ppapi/c/pp_module.h (revision 68603)
+++ ppapi/c/pp_module.h (working copy)
@@ -13,6 +13,7 @@
* @{
*/
+#include "ppapi/c/pp_macros.h"
#include "ppapi/c/pp_stdint.h"
/**
@@ -21,6 +22,7 @@
* 0, so a plugin can initialize it to 0 to indicate a "NULL handle."
*/
typedef int64_t PP_Module;
+PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_Module, 8);
/**
* @}
« ppapi/c/dev/pp_video_dev.h ('K') | « ppapi/c/pp_macros.h ('k') | ppapi/c/pp_point.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698