2024-03-31 15:44:34 +00:00
|
|
|
#ifndef SK_COMMONS_H
|
|
|
|
#define SK_COMMONS_H
|
|
|
|
|
2024-03-31 21:10:56 +00:00
|
|
|
#include <ctype.h>
|
|
|
|
#include <assert.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#include "str.h"
|
|
|
|
#include "vec.h"
|
|
|
|
#include "errors.h"
|
|
|
|
|
|
|
|
#define SK_ENUM_ENUM(X) X
|
|
|
|
#define SK_ENUM_STR(X) #X
|
|
|
|
|
|
|
|
#define SK_ENUM_H(PREFIX, DEF) \
|
|
|
|
typedef enum { DEF(SK_ENUM_ENUM) } PREFIX;\
|
|
|
|
extern char const* PREFIX ## Str []
|
|
|
|
|
|
|
|
#define SK_ENUM_C(PREFIX, DEF) \
|
|
|
|
char const* PREFIX ## Str [] = {DEF(SK_ENUM_STR)}
|
2024-03-31 15:44:34 +00:00
|
|
|
|
|
|
|
#endif
|