From 3d66ff08afcf5b4acff414ea855e22046b333772 Mon Sep 17 00:00:00 2001 From: timerix Date: Mon, 1 Aug 2022 01:41:18 +0600 Subject: [PATCH] my_type_last --- src/base/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/types.h b/src/base/types.h index b6de6ea..c061ad2 100644 --- a/src/base/types.h +++ b/src/base/types.h @@ -26,7 +26,7 @@ typedef enum __attribute__((__packed__)) my_type { AutoarrInt32Ptr, AutoarrUInt32Ptr, AutoarrInt64Ptr, AutoarrUInt64Ptr, AutoarrUnitypePtr, AutoarrKVPairPtr } my_type; -static const my_type my_type_last=AutoarrKVPairPtr; +#define my_type_last AutoarrKVPairPtr const char* my_type_name(my_type t);