2
0
mirror of https://github.com/xcat2/xNBA.git synced 2025-06-03 03:50:06 +00:00
xNBA/src/include/ipxe/errortab.h
Michael Brown 6c0e8c14be [libc] Enable automated extraction of error usage reports
Add preprocessor magic to the error definitions to enable every error
usage to be tracked.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
2010-05-31 03:11:57 +01:00

29 lines
466 B
C

#ifndef _IPXE_ERRORTAB_H
#define _IPXE_ERRORTAB_H
/** @file
*
* Error message tables
*
*/
FILE_LICENCE ( GPL2_OR_LATER );
#include <ipxe/tables.h>
struct errortab {
int errno;
const char *text;
};
#define ERRORTAB __table ( struct errortab, "errortab" )
#define __errortab __table_entry ( ERRORTAB, 01 )
#define __einfo_errortab( einfo ) { \
.errno = __einfo_errno ( einfo ), \
.text = __einfo_desc ( einfo ), \
}
#endif /* _IPXE_ERRORTAB_H */