All pastes #707410 Raw Edit

Meins

public c v1 · immutable
#707410 ·published 2007-09-22 21:57 UTC
rendered paste body
#define MAX_STATS_ENTRIES 200#define STATS_ENTRIES_CNT 0extern struct s_call_stats *menu_call_stats[MAX_STATS_ENTRIES];#if STATS_ENTRIES_CNT >= MAX_STATS_ENTRIES  #error Too many menu items, max. MAX_STATS_ENTRIES allowed#endif#define STATS_STRUCT(name)                                                  \    static struct s_call_stats name##_##call_stats =                        \            {#name, 0};                                                     \    menu_call_stats[STATS_ENTRIES_CNT] = &s_call_stats name##_##call_stats; \    #define STATS_ENTRIES_CNT (STATS_ENTRIES_CNT+1)