Page Speed Optimization Libraries  1.4.26.1
net/instaweb/util/public/basictypes.h
Go to the documentation of this file.
00001 // Copyright 2011 Google Inc. All Rights Reserved.
00016 
00017 #ifndef NET_INSTAWEB_UTIL_PUBLIC_BASICTYPES_H_
00018 #define NET_INSTAWEB_UTIL_PUBLIC_BASICTYPES_H_
00019 
00020 
00021 #include "base/basictypes.h"
00022 
00055 #if defined(__clang__) && __cplusplus >= 201103L && defined(__has_warning)
00056 #if __has_feature(cxx_attributes) && __has_warning("-Wimplicit-fallthrough")
00057 #define FALLTHROUGH_INTENDED [[clang::fallthrough]]  /// NOLINT
00058 #endif
00059 #endif
00060 
00061 #ifndef FALLTHROUGH_INTENDED
00062 #define FALLTHROUGH_INTENDED do { } while (0)
00063 #endif
00064 
00065 
00067 enum LazyBool {
00068   kNotSet = -1,
00069   kFalse = 0,
00070   kTrue = 1
00071 };
00072 
00073 #endif  ///< NET_INSTAWEB_UTIL_PUBLIC_BASICTYPES_H_
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines