| Index: base/debug/alias.h
|
| ===================================================================
|
| --- base/debug/alias.h (revision 0)
|
| +++ base/debug/alias.h (revision 0)
|
| @@ -0,0 +1,20 @@
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef BASE_MEMORY_ALIAS_H_
|
| +#define BASE_MEMORY_ALIAS_H_
|
| +#pragma once
|
| +
|
| +namespace base {
|
| +namespace debug {
|
| +
|
| +// Make the optimizer think that var is aliased. This is to prevent it from
|
| +// optimizing out variables that that would not otherwise be live at the point
|
| +// of a potential crash.
|
| +void Alias(const void* var);
|
| +
|
| +} // namespace debug
|
| +} // namespace base
|
| +
|
| +#endif // BASE_MEMORY_ALIAS_H_
|
|
|
| Property changes on: base\debug\alias.h
|
| ___________________________________________________________________
|
| Added: svn:eol-style
|
| + LF
|
|
|
|
|