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

Unified Diff: ppapi/c/pp_resource.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_resource.h
===================================================================
--- ppapi/c/pp_resource.h (revision 68603)
+++ ppapi/c/pp_resource.h (working copy)
@@ -5,6 +5,7 @@
#ifndef PPAPI_C_PP_RESOURCE_H_
#define PPAPI_C_PP_RESOURCE_H_
+#include "ppapi/c/pp_macros.h"
#include "ppapi/c/pp_stdint.h"
/**
@@ -30,6 +31,7 @@
* resource to indicate failure.
*/
typedef int64_t PP_Resource;
+PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_Resource, 8);
/**
* @}
« ppapi/c/dev/pp_video_dev.h ('K') | « ppapi/c/pp_rect.h ('k') | ppapi/c/pp_size.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698