Argx 1.0.2-build
Simple argument parser made in C
 
Loading...
Searching...
No Matches
ARGXAddError.h
Go to the documentation of this file.
1#pragma once
2
3#include "types.h"
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
9 // Error creation and management
10 ArgxcError argxcCreateErrorSimple(const char *msg, const char *help);
11 const char* argxcGetErrorMessage(const ArgxcError *error);
12 const char* argxcGetErrorHelp(const ArgxcError *error);
13 int argxcGetErrorCode(const ArgxcError *error);
14
15 typedef struct {
16 const char *error;
17 const char *help;
19
21
22#ifdef __cplusplus
23}
24#endif
int argxcGetErrorCode(const ArgxcError *error)
const char * argxcGetErrorHelp(const ArgxcError *error)
ArgxcError argxcCreateErrorSimple(const char *msg, const char *help)
const char * argxcGetErrorMessage(const ArgxcError *error)
ArgxcErrorPair argxcGetErrorPair(const ArgxcError *error)
const char * error
const char * help