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

Unified Diff: courgette/types_win_pe.h

Issue 857153003: Use "static_assert" in lieu of "COMPILE_ASSERT" in courgete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « courgette/third_party/bsdiff_create.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/types_win_pe.h
diff --git a/courgette/types_win_pe.h b/courgette/types_win_pe.h
index 64fd541b2a46d81ecd45c996369ea2672f3a04eb..eed88af6b057202bbd8b08069d4cd1a4e3569072 100644
--- a/courgette/types_win_pe.h
+++ b/courgette/types_win_pe.h
@@ -29,7 +29,7 @@ struct Section {
};
#pragma pack(pop)
-COMPILE_ASSERT(sizeof(Section) == 40, section_is_40_bytes);
+static_assert(sizeof(Section) == 40, "section size is 40 bytes");
// ImageDataDirectory has same layout as IMAGE_DATA_DIRECTORY structure from
// WINNT.H
@@ -42,8 +42,8 @@ class ImageDataDirectory {
uint32 size_;
};
-COMPILE_ASSERT(sizeof(ImageDataDirectory) == 8,
- image_data_directory_is_8_bytes);
+static_assert(sizeof(ImageDataDirectory) == 8,
+ "image data directory size is 8 bytes");
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « courgette/third_party/bsdiff_create.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698