Sha256: 03cc985ea383da5ee0d9efbb528aecac37ec9094a9b5b3f2c67d8259f2ea16ff

Contents?: true

Size: 569 Bytes

Versions: 18

Compression:

Stored size: 569 Bytes

Contents

// 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 ENCODINGS_COMPACT_LANG_DET_WIN_CLD_MACROS_H_
#define ENCODINGS_COMPACT_LANG_DET_WIN_CLD_MACROS_H_

#include "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  // ENCODINGS_COMPACT_LANG_DET_WIN_CLD_MACROS_H_

Version data entries

18 entries across 18 versions & 4 rubygems

Version Path
cld-0.13.0 ext/cld/encodings/compact_lang_det/win/cld_macros.h
language_detection-0.1.1 ext/cld/encodings/compact_lang_det/win/cld_macros.h
cld-0.12.0 ext/cld/encodings/compact_lang_det/win/cld_macros.h
language_detection-0.1.0 ext/cld/encodings/compact_lang_det/win/cld_macros.h
cld-0.11.0 ext/cld/encodings/compact_lang_det/win/cld_macros.h
cld-0.10.0 ext/cld/encodings/compact_lang_det/win/cld_macros.h
cld-0.8.0 ext/cld/encodings/compact_lang_det/win/cld_macros.h
cld-fixed-0.7.1 ext/cld/encodings/compact_lang_det/win/cld_macros.h
cld-0.7.0 ext/cld/encodings/compact_lang_det/win/cld_macros.h
language_detection-0.0.2 ext/cld/encodings/compact_lang_det/win/cld_macros.h
language_detection-0.0.1 ext/cld/encodings/compact_lang_det/win/cld_macros.h
cld-0.6.0 ext/cld/encodings/compact_lang_det/win/cld_macros.h
cld-0.5.0 ext/cld/encodings/compact_lang_det/win/cld_macros.h
krukid-cld-0.4.0 encodings/compact_lang_det/win/cld_macros.h
cld-0.4.0 encodings/compact_lang_det/win/cld_macros.h
cld-0.3.0 encodings/compact_lang_det/win/cld_macros.h
cld-0.2.0 encodings/compact_lang_det/win/cld_macros.h
cld-0.1.0 encodings/compact_lang_det/win/cld_macros.h