69,374
社区成员
发帖
与我相关
我的任务
分享
#define TTP_ROUTE_TABLE_ENTRY_INC(table) \
static inline void \
ttp_route_##table_inc(void) \
{ \
cur_l3_##table_table_entries++; \
}
TTP_ROUTE_TABLE_ENTRY_INC(ipv4_host)
TTP_ROUTE_TABLE_ENTRY_INC(ipv4_route)
TTP_ROUTE_TABLE_ENTRY_INC(ipv6_host)
TTP_ROUTE_TABLE_ENTRY_INC(ipv6_route)
#undef TTP_ROUTE_TABLE_ENTRY_INC
lib/ttp-route-table.c:130:1: error: redefinition of 'ttp_route_table_inc'
TTP_ROUTE_TABLE_ENTRY_INC(ipv4_host)
static inline void \
ttp_route_ipv4_host_inc(void) \
{ \
cur_l3_ipv4_host_table_entries++; \
}
#define CURL_I3_TABLE_ENTRIES(table, entries) curl_I3_##table##entries
#define TTP_ROUTE_TABLE_ENTRY(table, tag) \
static inline void \
ttp_route_##table##tag(void) \
{ \
CURL_I3_TABLE_ENTRIES(table, _entries)++; \
}
#define TTP_ROUTE_TABLE_ENTRY_INC(table) TTP_ROUTE_TABLE_ENTRY(table, _inc)
TTP_ROUTE_TABLE_ENTRY_INC(ipv4_host)
#define TTP_ROUTE_TABLE_ENTRY_INC(table) \
static inline void \
ttp_route_##table(void) \
{ \
cout<<#table<<endl; \
}
去掉_inc