Files
CgeArgs/CgeArgs.h

32 lines
458 B
C
Raw Permalink Normal View History

2026-08-17 15:06:08 +03:00
#ifndef CGE_ARGS_H
#define CGE_ARGS_H
2026-08-18 10:41:56 +03:00
#ifdef __cplusplus
extern "C" {
#endif
2026-08-17 15:06:08 +03:00
#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);
2026-08-18 10:41:56 +03:00
#ifdef __cplusplus
}
#endif
2026-08-17 15:06:08 +03:00
#endif /* CGE_ARGS_H */