This commit is contained in:
23
CgeArgs.h
Normal file
23
CgeArgs.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#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 */
|
||||
Reference in New Issue
Block a user