ReactOS 0.4.16-dev-1020-gf135cab
fterrors.h File Reference

Go to the source code of this file.

Macros

#define FTERRORS_H_
 
#define __FTERRORS_H__
 
#define FT_ERR_PREFIX   FT_Err_
 
#define FT_ERR_BASE   0
 
#define FT_INCLUDE_ERR_PROTOS
 
#define FT_ERRORDEF(e, v, s)   e = v,
 
#define FT_ERROR_START_LIST   enum {
 
#define FT_ERROR_END_LIST   FT_ERR_CAT( FT_ERR_PREFIX, Max ) };
 
#define FT_ERRORDEF_(e, v, s)    FT_ERRORDEF( FT_ERR_CAT( FT_ERR_PREFIX, e ), v + FT_ERR_BASE, s )
 
#define FT_NOERRORDEF_(e, v, s)    FT_ERRORDEF( FT_ERR_CAT( FT_ERR_PREFIX, e ), v, s )
 
#define FT_ERR_PROTOS_DEFINED
 

Functions

 FT_Error_String (FT_Error error_code)
 

Macro Definition Documentation

◆ __FTERRORS_H__

#define __FTERRORS_H__

Definition at line 123 of file fterrors.h.

◆ FT_ERR_BASE

#define FT_ERR_BASE   0

Definition at line 161 of file fterrors.h.

◆ FT_ERR_PREFIX

#define FT_ERR_PREFIX   FT_Err_

Definition at line 146 of file fterrors.h.

◆ FT_ERR_PROTOS_DEFINED

#define FT_ERR_PROTOS_DEFINED

Definition at line 244 of file fterrors.h.

◆ FT_ERROR_END_LIST

#define FT_ERROR_END_LIST   FT_ERR_CAT( FT_ERR_PREFIX, Max ) };

Definition at line 175 of file fterrors.h.

◆ FT_ERROR_START_LIST

#define FT_ERROR_START_LIST   enum {

Definition at line 174 of file fterrors.h.

◆ FT_ERRORDEF

#define FT_ERRORDEF (   e,
  v,
  s 
)    e = v,

Definition at line 173 of file fterrors.h.

◆ FT_ERRORDEF_

#define FT_ERRORDEF_ (   e,
  v,
  s 
)     FT_ERRORDEF( FT_ERR_CAT( FT_ERR_PREFIX, e ), v + FT_ERR_BASE, s )

Definition at line 186 of file fterrors.h.

◆ FT_INCLUDE_ERR_PROTOS

#define FT_INCLUDE_ERR_PROTOS

Definition at line 171 of file fterrors.h.

◆ FT_NOERRORDEF_

#define FT_NOERRORDEF_ (   e,
  v,
  s 
)     FT_ERRORDEF( FT_ERR_CAT( FT_ERR_PREFIX, e ), v, s )

Definition at line 190 of file fterrors.h.

◆ FTERRORS_H_

#define FTERRORS_H_

Definition at line 122 of file fterrors.h.

Function Documentation

◆ FT_Error_String()

FT_Error_String ( FT_Error  error_code)

Definition at line 26 of file fterrors.c.

27 {
28 if ( error_code < 0 ||
30 return NULL;
31
32#if defined( FT_CONFIG_OPTION_ERROR_STRINGS ) || \
33 defined( FT_DEBUG_LEVEL_ERROR )
34
35#undef FTERRORS_H_
36#define FT_ERROR_START_LIST switch ( FT_ERROR_BASE( error_code ) ) {
37#define FT_ERRORDEF( e, v, s ) case v: return s;
38#define FT_ERROR_END_LIST }
39
40#include FT_ERRORS_H
41
42#endif /* defined( FT_CONFIG_OPTION_ERROR_STRINGS ) || ... */
43
44 return NULL;
45 }
#define Max(a, b)
Definition: cdprocs.h:78
#define NULL
Definition: types.h:112
#define FT_ERR_PREFIX
Definition: fterrors.h:146
#define FT_ERR_CAT(x, y)
Definition: fttypes.h:595
static int error_code[8]
Definition: odbccp32.c:61