All checks were successful
CI / build-and-analyze (push) Successful in 53s
32 lines
458 B
C
32 lines
458 B
C
#ifndef CGE_ARGS_H
|
|
#define CGE_ARGS_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stddef.h>
|
|
|
|
enum CgeArgsType {
|
|
CGE_ARGS_STRING,
|
|
CGE_ARGS_INT,
|
|
CGE_ARGS_FLOAT,
|
|
CGE_ARGS_DOUBLE,
|
|
CGE_ARGS_BOOL,
|
|
};
|
|
|
|
typedef struct CgeArgs {
|
|
char shortName;
|
|
const char *longName;
|
|
int type;
|
|
void *data;
|
|
} CgeArgs;
|
|
|
|
int CgeArgsParse(CgeArgs *args, size_t size, int argc, char **argv);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* CGE_ARGS_H */
|