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

Unified Diff: ppapi/c/pp_time.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_time.h
===================================================================
--- ppapi/c/pp_time.h (revision 68603)
+++ ppapi/c/pp_time.h (working copy)
@@ -13,12 +13,15 @@
* @{
*/
+#include "ppapi/c/pp_macros.h"
+
/**
* PP_Time represents the "wall clock time" according to the browser and is
* defined as the number of seconds since the Epoch (00:00:00 UTC, January 1,
* 1970).
*/
typedef double PP_Time;
+PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_Time, 8);
/**
* Represents time ticks which is measured in seconds and is used for indicating
@@ -30,6 +33,7 @@
* epoch, so the most you can do is compare two values.
*/
typedef double PP_TimeTicks;
+PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_TimeTicks, 8);
/**
* @}
« ppapi/c/dev/pp_video_dev.h ('K') | « ppapi/c/pp_size.h ('k') | ppapi/c/pp_var.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698