OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef REMOTING_HOST_HOST_ATTRIBUTES_EMPTY_H_ |
| 6 #define REMOTING_HOST_HOST_ATTRIBUTES_EMPTY_H_ |
| 7 |
| 8 #include "remoting/host/host_attributes.h" |
| 9 |
| 10 namespace remoting { |
| 11 |
| 12 namespace { |
| 13 |
| 14 inline constexpr bool IsDebug() { |
| 15 #if defined(NDEBUG) |
| 16 return false; |
| 17 #else |
| 18 return true; |
| 19 #endif |
| 20 } |
| 21 |
| 22 } // namespace |
| 23 |
| 24 static StaticAttribute kStaticAttributes[] = { |
| 25 StaticAttribute::Create( { "Debug-Build", &IsDebug } ), |
| 26 }; |
| 27 |
| 28 static constexpr DynamicAttribute kDynamicAttributes[] = {}; |
| 29 |
| 30 } // namespace remoting |
| 31 |
| 32 #endif // REMOTING_HOST_HOST_ATTRIBUTES_EMPTY_H_ |
OLD | NEW |