Chromium Code Reviews

Unified Diff: ppapi/c/dev/pp_cursor_type_dev.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.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | ppapi/c/dev/pp_file_info_dev.h » ('j') | ppapi/c/dev/pp_video_dev.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/dev/pp_cursor_type_dev.h
===================================================================
--- ppapi/c/dev/pp_cursor_type_dev.h (revision 68603)
+++ ppapi/c/dev/pp_cursor_type_dev.h (working copy)
@@ -5,6 +5,8 @@
#ifndef PPAPI_C_DEV_PP_CURSORTYPE_DEV_H_
#define PPAPI_C_DEV_PP_CURSORTYPE_DEV_H_
+#include "ppapi/c/pp_macros.h"
+
enum PP_CursorType_Dev {
PP_CURSORTYPE_POINTER = 0,
PP_CURSORTYPE_CROSS = 1,
@@ -49,5 +51,6 @@
PP_CURSORTYPE_ZOOMOUT = 40,
PP_CURSORTYPE_CUSTOM = 41
};
+PP_COMPILE_ASSERT_ENUM_SIZE_IN_BYTES(PP_CursorType_Dev, 4);
#endif // PPAPI_C_DEV_PP_CURSORTYPE_DEV_H_
« no previous file with comments | « no previous file | ppapi/c/dev/pp_file_info_dev.h » ('j') | ppapi/c/dev/pp_video_dev.h » ('J')

Powered by Google App Engine