]> git.sesse.net Git - casparcg/commitdiff
2.1.0: video_format: Added static_assert for field_mode.
authorronag <ronag@362d55ac-95cf-4e76-9f9a-cbaa9c17b72d>
Tue, 14 Feb 2012 18:51:11 +0000 (18:51 +0000)
committerronag <ronag@362d55ac-95cf-4e76-9f9a-cbaa9c17b72d>
Tue, 14 Feb 2012 18:51:11 +0000 (18:51 +0000)
git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches/2.1.0@2412 362d55ac-95cf-4e76-9f9a-cbaa9c17b72d

core/video_format.h

index b6ae651ba57d0d55f549e914bac108faee2d6762..7f3ed64a351ffb71008ba3f4b71df3b8792deaf8 100644 (file)
@@ -63,6 +63,7 @@ struct field_mode_def
                upper           = 2,\r
                progressive = 3, // NOTE: progressive == lower | upper;\r
        };\r
+       static_assert((lower | upper) == progressive, "");\r
 };\r
 typedef enum_class<field_mode_def> field_mode;\r
 \r