Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
enum-str: add ENUM_SELF macro
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed Sep 3, 2024
1 parent 7ace3ad commit 62e5b89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/libtrx/enum_str.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ typedef struct {
int value;
} ENUM_STRING_MAP;

#define ENUM_SELF(type) { type, ##type }
#define ENUM_STRING_MAP(type) g_EnumStr_##type

#ifdef ENUM_STR_IMPL
Expand Down

0 comments on commit 62e5b89

Please sign in to comment.