michael@0: // Copyright (c) 2011 The Chromium Authors. All rights reserved. michael@0: // Use of this source code is governed by a BSD-style license that can be michael@0: // found in the LICENSE file. michael@0: michael@0: #ifndef BASE_DEBUG_ALIAS_H_ michael@0: #define BASE_DEBUG_ALIAS_H_ michael@0: michael@0: #include "base/base_export.h" michael@0: michael@0: namespace base { michael@0: namespace debug { michael@0: michael@0: // Make the optimizer think that var is aliased. This is to prevent it from michael@0: // optimizing out variables that that would not otherwise be live at the point michael@0: // of a potential crash. michael@0: void BASE_EXPORT Alias(const void* var); michael@0: michael@0: } // namespace debug michael@0: } // namespace base michael@0: michael@0: #endif // BASE_DEBUG_ALIAS_H_