| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_TOOLS_FLIP_SERVER_OTHER_DEFINES | 5 #ifndef NET_TOOLS_FLIP_SERVER_OTHER_DEFINES |
| 6 #define NET_TOOLS_FLIP_SERVER_OTHER_DEFINES | 6 #define NET_TOOLS_FLIP_SERVER_OTHER_DEFINES |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 class NullStream { | 9 class NullStream { |
| 10 public: | 10 public: |
| 11 NullStream() {} | 11 NullStream() {} |
| 12 template <typename T> | 12 template <typename T> |
| 13 NullStream operator<<(T t) { return *this;} | 13 NullStream operator<<(T t) { return *this;} |
| 14 }; | 14 }; |
| 15 | 15 |
| 16 #define VLOG(X) NullStream() |
| 17 #define DVLOG(X) NullStream() |
| 18 |
| 19 |
| 16 #endif // NET_TOOLS_FLIP_SERVER_OTHER_DEFINES | 20 #endif // NET_TOOLS_FLIP_SERVER_OTHER_DEFINES |
| 17 | 21 |
| OLD | NEW |