2025-11-28 00:35:46 +09:00

37 lines
626 B
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*++
Copyright (c) 1995 Intel Corp
File Name:
huerror.cpp
Abstract:
Header file for error functions.
--*/
#ifndef _ERRORH_
#define _ERRORH_
#include <stdarg.h>
const int ERRORSTART = 0x100;
typedef enum { ENONE = ERRORSTART,
OTHERERROR,
ALLOCERROR,
INVALIDARG,
OBJNOTINIT,
OBJEFFERROR, // Object effeciency error.
ALREADYCONN,
ALREADYLIST
} ErrorCode_e;
void HUSetLastError(ErrorCode_e ErrorCode);
ErrorCode_e HUGetLastError();
void HUPrintError(char *func,ErrorCode_e ErrorCode = ENONE);
#endif