This repository has been archived on 2026-04-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
bhlib/include/BH/Args.h
Mikhail Romanko fc774fd0ff Refactor, separate docs from headers, add ru docs
Doxygen kind'a sucks and I need multilanguage documentation, so I did
that. Also, separated massive Math.h file into smaller files.
2025-06-21 20:12:15 +03:00

39 lines
644 B
C

#ifndef BH_ARGS_H
#define BH_ARGS_H
#include "Common.h"
#define BH_ARGS_ARGUMENT 0
#define BH_ARGS_UNKNOWN -1
#define BH_ARGS_VALUE 1
#define BH_ARGS_OPTIONAL 2
typedef struct BH_ArgsOption
{
int key;
const char *name;
int flags;
const char *description;
} BH_ArgsOption;
typedef int (*BH_ArgsCallback)(int key, char *arg, void *data);
int BH_ArgsParse(int argc,
char **argv,
BH_ArgsOption *options,
BH_ArgsCallback callback,
void *data);
void BH_ArgsHelp(BH_ArgsOption *options,
int padding);
#endif /* BH_ARGS_H */