All checks were successful
CI / build-and-analyze (push) Successful in 1m30s
24 lines
389 B
C
24 lines
389 B
C
#ifndef CGE_ARGS_H
|
|
#define CGE_ARGS_H
|
|
|
|
#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);
|
|
|
|
#endif /* CGE_ARGS_H */
|