Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
basictypes.h
Go to the documentation of this file.
1 // Copyright 2011 Google Inc. All Rights Reserved.
16 
17 #ifndef PAGESPEED_KERNEL_BASE_BASICTYPES_H_
18 #define PAGESPEED_KERNEL_BASE_BASICTYPES_H_
19 
20 
21 #include "base/basictypes.h"
22 #include "base/macros.h"
23 
56 #if defined(__clang__) && __cplusplus >= 201103L && defined(__has_warning)
57 #if __has_feature(cxx_attributes) && __has_warning("-Wimplicit-fallthrough")
58 #define FALLTHROUGH_INTENDED [[clang::fallthrough]]
59 #endif
60 #endif
61 
62 #ifndef FALLTHROUGH_INTENDED
63 #define FALLTHROUGH_INTENDED do { } while (0)
64 #endif
65 
66 
68 enum LazyBool {
69  kNotSet = -1,
70  kFalse = 0,
71  kTrue = 1
72 };
73 
74 #endif
LazyBool
Lazily-initialized boolean value.
Definition: basictypes.h:68