| Index: third_party/cld/bar/toolbar/cld/i18n/encodings/compact_lang_det/win/cld_macros.h
|
| ===================================================================
|
| --- third_party/cld/bar/toolbar/cld/i18n/encodings/compact_lang_det/win/cld_macros.h (revision 0)
|
| +++ third_party/cld/bar/toolbar/cld/i18n/encodings/compact_lang_det/win/cld_macros.h (revision 0)
|
| @@ -0,0 +1,19 @@
|
| +// Copyright (c) 2006-2009 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 BAR_TOOLBAR_CLD_I18N_ENCODINGS_COMPACT_LANG_DET_WIN_CLD_MACROS_H_
|
| +#define BAR_TOOLBAR_CLD_I18N_ENCODINGS_COMPACT_LANG_DET_WIN_CLD_MACROS_H_
|
| +
|
| +#include "third_party/cld/base/macros.h"
|
| +
|
| +// Checks for Win32 result and if it indicates failure, returns it.
|
| +#define RETURN_IF_ERROR(cmd) \
|
| + do { \
|
| + DWORD result_ = (cmd); \
|
| + if (0 != result_) \
|
| + return result_; \
|
| + } \
|
| + while (0);
|
| +
|
| +#endif // BAR_TOOLBAR_CLD_I18N_ENCODINGS_COMPACT_LANG_DET_WIN_CLD_MACROS_H_
|
|
|
| Property changes on: third_party\cld\bar\toolbar\cld\i18n\encodings\compact_lang_det\win\cld_macros.h
|
| ___________________________________________________________________
|
| Added: svn:eol-style
|
| + LF
|
|
|
|
|