VfrError.h revision 4fd606d1f5abe38e1f42c38de1d2e895166bd0f4
/** @file
VfrCompiler Error definition
Copyright (c) 2004 - 2011, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
#ifndef _VFRERROR_H_
#define _VFRERROR_H_
#include "Common/UefiBaseTypes.h"
typedef enum {
VFR_RETURN_SUCCESS = 0,
typedef struct _SVFR_ERROR_HANDLE {
struct SVfrFileScopeRecord {
};
~CVfrErrorHandle (VOID);
VOID PrintMsg (IN UINT32 LineNum = 0, IN CHAR8 *TokName = NULL, IN CONST CHAR8 *MsgType = "Error", IN CONST CHAR8 *ErrorMsg = "");
};
#define CHECK_ERROR_RETURN(f, v) do { EFI_VFR_RETURN_CODE r; if ((r = (f)) != (v)) { return r; } } while (0)
extern CVfrErrorHandle gCVfrErrorHandle;
#endif