| OLD | NEW |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 1 #ifndef NET_TOOLS_FLIP_SERVER_OTHER_DEFINES | 5 #ifndef NET_TOOLS_FLIP_SERVER_OTHER_DEFINES |
| 2 #define NET_TOOLS_FLIP_SERVER_OTHER_DEFINES | 6 #define NET_TOOLS_FLIP_SERVER_OTHER_DEFINES |
| 3 #pragma once | 7 #pragma once |
| 4 | 8 |
| 5 class NullStream { | 9 class NullStream { |
| 6 public: | 10 public: |
| 7 NullStream() {} | 11 NullStream() {} |
| 8 template <typename T> | 12 template <typename T> |
| 9 NullStream operator<<(T t) { return *this;} | 13 NullStream operator<<(T t) { return *this;} |
| 10 }; | 14 }; |
| 11 | 15 |
| 12 #define VLOG(X) NullStream() | 16 #define VLOG(X) NullStream() |
| 13 #define DVLOG(X) NullStream() | 17 #define DVLOG(X) NullStream() |
| 14 | 18 |
| 15 | 19 |
| 16 #endif // NET_TOOLS_FLIP_SERVER_OTHER_DEFINES | 20 #endif // NET_TOOLS_FLIP_SERVER_OTHER_DEFINES |
| 17 | 21 |
| OLD | NEW |