Skip to content

Commit

Permalink
[struct_pack] support 256 field (#688)
Browse files Browse the repository at this point in the history
  • Loading branch information
poor-circle authored Jun 4, 2024
1 parent 9a7b36a commit 9d29664
Show file tree
Hide file tree
Showing 8 changed files with 7,953 additions and 292 deletions.
138 changes: 122 additions & 16 deletions include/ylt/struct_pack/foreach_macro.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,10 @@
*/
#pragma once
// clang-format off
#define STRUCT_PACK_ARG_COUNT(...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_INTERNAL_ARG_COUNT(0, ##__VA_ARGS__,\
64, 63, 62, 61, 60, \
59, 58, 57, 56, 55, 54, 53, 52, 51, 50, \
49, 48, 47, 46, 45, 44, 43, 42, 41, 40, \
39, 38, 37, 36, 35, 34, 33, 32, 31, 30, \
29, 28, 27, 26, 25, 24, 23, 22, 21, 20, \
19, 18, 17, 16, 15, 14, 13, 12, 11, 10, \
9, 8, 7, 6, 5, 4, 3, 2, 1, 0))
#define STRUCT_PACK_ARG_COUNT(...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_INTERNAL_ARG_COUNT(0, ##__VA_ARGS__,124,123,122,121,120,119,118,117,116,115,114,113,112,111,110,109,108,107,106,105,104,103,102,101,100,99,98,97,96,95,94,93,92,91,90,89,88,87,86,85,84,83,82,81,80,79,78,77,76,75,74,73,72,71,70,69,68,67,66,65,64,63,62,61,60,59,58,57,56,55,54,53,52,51,50,49,48,47,46,45,44,43,42,41,40,39,38,37,36,35,34,33,32,31,30,29,28,27,26,25,24,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0))

#define STRUCT_PACK_INTERNAL_ARG_COUNT(\
_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, \
_10, _11, _12, _13, _14, _15, _16, _17, _18, _19, \
_20, _21, _22, _23, _24, _25, _26, _27, _28, _29, \
_30, _31, _32, _33, _34, _35, _36, _37, _38, _39, \
_40, _41, _42, _43, _44, _45, _46, _47, _48, _49, \
_50, _51, _52, _53, _54, _55, _56, _57, _58, _59, \
_60, _61, _62, _63, _64, N, ...) N
_0,_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,_16,_17,_18,_19,_20,_21,_22,_23,_24,_25,_26,_27,_28,_29,_30,_31,_32,_33,_34,_35,_36,_37,_38,_39,_40,_41,_42,_43,_44,_45,_46,_47,_48,_49,_50,_51,_52,_53,_54,_55,_56,_57,_58,_59,_60,_61,_62,_63,_64,_65,_66,_67,_68,_69,_70,_71,_72,_73,_74,_75,_76,_77,_78,_79,_80,_81,_82,_83,_84,_85,_86,_87,_88,_89,_90,_91,_92,_93,_94,_95,_96,_97,_98,_99,_100,_101,_102,_103,_104,_105,_106,_107,_108,_109,_110,_111,_112,_113,_114,_115,_116,_117,_118,_119,_120,_121,_122,_123,_124, N, ...) N

#define STRUCT_PACK_CONCAT_(l, r) l ## r
#define STRUCT_PACK_CONCAT(l, r) STRUCT_PACK_CONCAT_(l, r)
Expand Down Expand Up @@ -103,6 +90,66 @@
#define STRUCT_PACK_DOARG62(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG61(s,f,__VA_ARGS__)) s f(61,t)
#define STRUCT_PACK_DOARG63(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG62(s,f,__VA_ARGS__)) s f(62,t)
#define STRUCT_PACK_DOARG64(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG63(s,f,__VA_ARGS__)) s f(63,t)
#define STRUCT_PACK_DOARG65(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG64(s,f,__VA_ARGS__)) s f(64,t)
#define STRUCT_PACK_DOARG66(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG65(s,f,__VA_ARGS__)) s f(65,t)
#define STRUCT_PACK_DOARG67(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG66(s,f,__VA_ARGS__)) s f(66,t)
#define STRUCT_PACK_DOARG68(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG67(s,f,__VA_ARGS__)) s f(67,t)
#define STRUCT_PACK_DOARG69(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG68(s,f,__VA_ARGS__)) s f(68,t)
#define STRUCT_PACK_DOARG70(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG69(s,f,__VA_ARGS__)) s f(69,t)
#define STRUCT_PACK_DOARG71(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG70(s,f,__VA_ARGS__)) s f(70,t)
#define STRUCT_PACK_DOARG72(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG71(s,f,__VA_ARGS__)) s f(71,t)
#define STRUCT_PACK_DOARG73(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG72(s,f,__VA_ARGS__)) s f(72,t)
#define STRUCT_PACK_DOARG74(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG73(s,f,__VA_ARGS__)) s f(73,t)
#define STRUCT_PACK_DOARG75(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG74(s,f,__VA_ARGS__)) s f(74,t)
#define STRUCT_PACK_DOARG76(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG75(s,f,__VA_ARGS__)) s f(75,t)
#define STRUCT_PACK_DOARG77(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG76(s,f,__VA_ARGS__)) s f(76,t)
#define STRUCT_PACK_DOARG78(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG77(s,f,__VA_ARGS__)) s f(77,t)
#define STRUCT_PACK_DOARG79(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG78(s,f,__VA_ARGS__)) s f(78,t)
#define STRUCT_PACK_DOARG80(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG79(s,f,__VA_ARGS__)) s f(79,t)
#define STRUCT_PACK_DOARG81(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG80(s,f,__VA_ARGS__)) s f(80,t)
#define STRUCT_PACK_DOARG82(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG81(s,f,__VA_ARGS__)) s f(81,t)
#define STRUCT_PACK_DOARG83(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG82(s,f,__VA_ARGS__)) s f(82,t)
#define STRUCT_PACK_DOARG84(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG83(s,f,__VA_ARGS__)) s f(83,t)
#define STRUCT_PACK_DOARG85(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG84(s,f,__VA_ARGS__)) s f(84,t)
#define STRUCT_PACK_DOARG86(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG85(s,f,__VA_ARGS__)) s f(85,t)
#define STRUCT_PACK_DOARG87(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG86(s,f,__VA_ARGS__)) s f(86,t)
#define STRUCT_PACK_DOARG88(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG87(s,f,__VA_ARGS__)) s f(87,t)
#define STRUCT_PACK_DOARG89(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG88(s,f,__VA_ARGS__)) s f(88,t)
#define STRUCT_PACK_DOARG90(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG89(s,f,__VA_ARGS__)) s f(89,t)
#define STRUCT_PACK_DOARG91(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG90(s,f,__VA_ARGS__)) s f(90,t)
#define STRUCT_PACK_DOARG92(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG91(s,f,__VA_ARGS__)) s f(91,t)
#define STRUCT_PACK_DOARG93(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG92(s,f,__VA_ARGS__)) s f(92,t)
#define STRUCT_PACK_DOARG94(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG93(s,f,__VA_ARGS__)) s f(93,t)
#define STRUCT_PACK_DOARG95(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG94(s,f,__VA_ARGS__)) s f(94,t)
#define STRUCT_PACK_DOARG96(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG95(s,f,__VA_ARGS__)) s f(95,t)
#define STRUCT_PACK_DOARG97(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG96(s,f,__VA_ARGS__)) s f(96,t)
#define STRUCT_PACK_DOARG98(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG97(s,f,__VA_ARGS__)) s f(97,t)
#define STRUCT_PACK_DOARG99(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG98(s,f,__VA_ARGS__)) s f(98,t)
#define STRUCT_PACK_DOARG100(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG99(s,f,__VA_ARGS__)) s f(99,t)
#define STRUCT_PACK_DOARG101(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG100(s,f,__VA_ARGS__)) s f(100,t)
#define STRUCT_PACK_DOARG102(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG101(s,f,__VA_ARGS__)) s f(101,t)
#define STRUCT_PACK_DOARG103(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG102(s,f,__VA_ARGS__)) s f(102,t)
#define STRUCT_PACK_DOARG104(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG103(s,f,__VA_ARGS__)) s f(103,t)
#define STRUCT_PACK_DOARG105(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG104(s,f,__VA_ARGS__)) s f(104,t)
#define STRUCT_PACK_DOARG106(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG105(s,f,__VA_ARGS__)) s f(105,t)
#define STRUCT_PACK_DOARG107(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG106(s,f,__VA_ARGS__)) s f(106,t)
#define STRUCT_PACK_DOARG108(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG107(s,f,__VA_ARGS__)) s f(107,t)
#define STRUCT_PACK_DOARG109(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG108(s,f,__VA_ARGS__)) s f(108,t)
#define STRUCT_PACK_DOARG110(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG109(s,f,__VA_ARGS__)) s f(109,t)
#define STRUCT_PACK_DOARG111(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG110(s,f,__VA_ARGS__)) s f(110,t)
#define STRUCT_PACK_DOARG112(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG111(s,f,__VA_ARGS__)) s f(111,t)
#define STRUCT_PACK_DOARG113(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG112(s,f,__VA_ARGS__)) s f(112,t)
#define STRUCT_PACK_DOARG114(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG113(s,f,__VA_ARGS__)) s f(113,t)
#define STRUCT_PACK_DOARG115(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG114(s,f,__VA_ARGS__)) s f(114,t)
#define STRUCT_PACK_DOARG116(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG115(s,f,__VA_ARGS__)) s f(115,t)
#define STRUCT_PACK_DOARG117(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG116(s,f,__VA_ARGS__)) s f(116,t)
#define STRUCT_PACK_DOARG118(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG117(s,f,__VA_ARGS__)) s f(117,t)
#define STRUCT_PACK_DOARG119(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG118(s,f,__VA_ARGS__)) s f(118,t)
#define STRUCT_PACK_DOARG120(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG119(s,f,__VA_ARGS__)) s f(119,t)
#define STRUCT_PACK_DOARG121(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG120(s,f,__VA_ARGS__)) s f(120,t)
#define STRUCT_PACK_DOARG122(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG121(s,f,__VA_ARGS__)) s f(121,t)
#define STRUCT_PACK_DOARG123(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG122(s,f,__VA_ARGS__)) s f(122,t)
#define STRUCT_PACK_DOARG124(s,f,t,...) STRUCT_PACK_MARCO_EXPAND(STRUCT_PACK_DOARG123(s,f,__VA_ARGS__)) s f(123,t)

#define STRUCT_PACK_MAKE_ARGS0(Type)
#define STRUCT_PACK_MAKE_ARGS1(Type) Type
Expand Down Expand Up @@ -169,7 +216,66 @@
#define STRUCT_PACK_MAKE_ARGS62(Type) STRUCT_PACK_MAKE_ARGS61(Type), Type
#define STRUCT_PACK_MAKE_ARGS63(Type) STRUCT_PACK_MAKE_ARGS62(Type), Type
#define STRUCT_PACK_MAKE_ARGS64(Type) STRUCT_PACK_MAKE_ARGS63(Type), Type

#define STRUCT_PACK_MAKE_ARGS65(Type) STRUCT_PACK_MAKE_ARGS64(Type), Type
#define STRUCT_PACK_MAKE_ARGS66(Type) STRUCT_PACK_MAKE_ARGS65(Type), Type
#define STRUCT_PACK_MAKE_ARGS67(Type) STRUCT_PACK_MAKE_ARGS66(Type), Type
#define STRUCT_PACK_MAKE_ARGS68(Type) STRUCT_PACK_MAKE_ARGS67(Type), Type
#define STRUCT_PACK_MAKE_ARGS69(Type) STRUCT_PACK_MAKE_ARGS68(Type), Type
#define STRUCT_PACK_MAKE_ARGS70(Type) STRUCT_PACK_MAKE_ARGS69(Type), Type
#define STRUCT_PACK_MAKE_ARGS71(Type) STRUCT_PACK_MAKE_ARGS70(Type), Type
#define STRUCT_PACK_MAKE_ARGS72(Type) STRUCT_PACK_MAKE_ARGS71(Type), Type
#define STRUCT_PACK_MAKE_ARGS73(Type) STRUCT_PACK_MAKE_ARGS72(Type), Type
#define STRUCT_PACK_MAKE_ARGS74(Type) STRUCT_PACK_MAKE_ARGS73(Type), Type
#define STRUCT_PACK_MAKE_ARGS75(Type) STRUCT_PACK_MAKE_ARGS74(Type), Type
#define STRUCT_PACK_MAKE_ARGS76(Type) STRUCT_PACK_MAKE_ARGS75(Type), Type
#define STRUCT_PACK_MAKE_ARGS77(Type) STRUCT_PACK_MAKE_ARGS76(Type), Type
#define STRUCT_PACK_MAKE_ARGS78(Type) STRUCT_PACK_MAKE_ARGS77(Type), Type
#define STRUCT_PACK_MAKE_ARGS79(Type) STRUCT_PACK_MAKE_ARGS78(Type), Type
#define STRUCT_PACK_MAKE_ARGS80(Type) STRUCT_PACK_MAKE_ARGS79(Type), Type
#define STRUCT_PACK_MAKE_ARGS81(Type) STRUCT_PACK_MAKE_ARGS80(Type), Type
#define STRUCT_PACK_MAKE_ARGS82(Type) STRUCT_PACK_MAKE_ARGS81(Type), Type
#define STRUCT_PACK_MAKE_ARGS83(Type) STRUCT_PACK_MAKE_ARGS82(Type), Type
#define STRUCT_PACK_MAKE_ARGS84(Type) STRUCT_PACK_MAKE_ARGS83(Type), Type
#define STRUCT_PACK_MAKE_ARGS85(Type) STRUCT_PACK_MAKE_ARGS84(Type), Type
#define STRUCT_PACK_MAKE_ARGS86(Type) STRUCT_PACK_MAKE_ARGS85(Type), Type
#define STRUCT_PACK_MAKE_ARGS87(Type) STRUCT_PACK_MAKE_ARGS86(Type), Type
#define STRUCT_PACK_MAKE_ARGS88(Type) STRUCT_PACK_MAKE_ARGS87(Type), Type
#define STRUCT_PACK_MAKE_ARGS89(Type) STRUCT_PACK_MAKE_ARGS88(Type), Type
#define STRUCT_PACK_MAKE_ARGS90(Type) STRUCT_PACK_MAKE_ARGS89(Type), Type
#define STRUCT_PACK_MAKE_ARGS91(Type) STRUCT_PACK_MAKE_ARGS90(Type), Type
#define STRUCT_PACK_MAKE_ARGS92(Type) STRUCT_PACK_MAKE_ARGS91(Type), Type
#define STRUCT_PACK_MAKE_ARGS93(Type) STRUCT_PACK_MAKE_ARGS92(Type), Type
#define STRUCT_PACK_MAKE_ARGS94(Type) STRUCT_PACK_MAKE_ARGS93(Type), Type
#define STRUCT_PACK_MAKE_ARGS95(Type) STRUCT_PACK_MAKE_ARGS94(Type), Type
#define STRUCT_PACK_MAKE_ARGS96(Type) STRUCT_PACK_MAKE_ARGS95(Type), Type
#define STRUCT_PACK_MAKE_ARGS97(Type) STRUCT_PACK_MAKE_ARGS96(Type), Type
#define STRUCT_PACK_MAKE_ARGS98(Type) STRUCT_PACK_MAKE_ARGS97(Type), Type
#define STRUCT_PACK_MAKE_ARGS99(Type) STRUCT_PACK_MAKE_ARGS98(Type), Type
#define STRUCT_PACK_MAKE_ARGS100(Type) STRUCT_PACK_MAKE_ARGS99(Type), Type
#define STRUCT_PACK_MAKE_ARGS101(Type) STRUCT_PACK_MAKE_ARGS100(Type), Type
#define STRUCT_PACK_MAKE_ARGS102(Type) STRUCT_PACK_MAKE_ARGS101(Type), Type
#define STRUCT_PACK_MAKE_ARGS103(Type) STRUCT_PACK_MAKE_ARGS102(Type), Type
#define STRUCT_PACK_MAKE_ARGS104(Type) STRUCT_PACK_MAKE_ARGS103(Type), Type
#define STRUCT_PACK_MAKE_ARGS105(Type) STRUCT_PACK_MAKE_ARGS104(Type), Type
#define STRUCT_PACK_MAKE_ARGS106(Type) STRUCT_PACK_MAKE_ARGS105(Type), Type
#define STRUCT_PACK_MAKE_ARGS107(Type) STRUCT_PACK_MAKE_ARGS106(Type), Type
#define STRUCT_PACK_MAKE_ARGS108(Type) STRUCT_PACK_MAKE_ARGS107(Type), Type
#define STRUCT_PACK_MAKE_ARGS109(Type) STRUCT_PACK_MAKE_ARGS108(Type), Type
#define STRUCT_PACK_MAKE_ARGS110(Type) STRUCT_PACK_MAKE_ARGS109(Type), Type
#define STRUCT_PACK_MAKE_ARGS111(Type) STRUCT_PACK_MAKE_ARGS110(Type), Type
#define STRUCT_PACK_MAKE_ARGS112(Type) STRUCT_PACK_MAKE_ARGS111(Type), Type
#define STRUCT_PACK_MAKE_ARGS113(Type) STRUCT_PACK_MAKE_ARGS112(Type), Type
#define STRUCT_PACK_MAKE_ARGS114(Type) STRUCT_PACK_MAKE_ARGS113(Type), Type
#define STRUCT_PACK_MAKE_ARGS115(Type) STRUCT_PACK_MAKE_ARGS114(Type), Type
#define STRUCT_PACK_MAKE_ARGS116(Type) STRUCT_PACK_MAKE_ARGS115(Type), Type
#define STRUCT_PACK_MAKE_ARGS117(Type) STRUCT_PACK_MAKE_ARGS116(Type), Type
#define STRUCT_PACK_MAKE_ARGS118(Type) STRUCT_PACK_MAKE_ARGS117(Type), Type
#define STRUCT_PACK_MAKE_ARGS119(Type) STRUCT_PACK_MAKE_ARGS118(Type), Type
#define STRUCT_PACK_MAKE_ARGS120(Type) STRUCT_PACK_MAKE_ARGS119(Type), Type
#define STRUCT_PACK_MAKE_ARGS121(Type) STRUCT_PACK_MAKE_ARGS120(Type), Type
#define STRUCT_PACK_MAKE_ARGS122(Type) STRUCT_PACK_MAKE_ARGS121(Type), Type
#define STRUCT_PACK_MAKE_ARGS123(Type) STRUCT_PACK_MAKE_ARGS122(Type), Type
#define STRUCT_PACK_MAKE_ARGS124(Type) STRUCT_PACK_MAKE_ARGS123(Type), Type

#define STRUCT_PACK_MAKE_ARGS(Type,Count) \
STRUCT_PACK_CONCAT(STRUCT_PACK_MAKE_ARGS,Count)(Type)
Expand Down
Loading

0 comments on commit 9d29664

Please sign in to comment.