Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Meins
Saturday, September 22nd, 2007 at 9:57:45pm UTC 

  1. #define MAX_STATS_ENTRIES 200
  2. #define STATS_ENTRIES_CNT 0
  3. extern struct s_call_stats *menu_call_stats[MAX_STATS_ENTRIES];
  4.  
  5. #if STATS_ENTRIES_CNT >= MAX_STATS_ENTRIES
  6.   #error Too many menu items, max. MAX_STATS_ENTRIES allowed
  7. #endif
  8. #define STATS_STRUCT(name)                                                  \
  9.     static struct s_call_stats name##_##call_stats =                        \
  10.             {#name, 0};                                                     \
  11.     menu_call_stats[STATS_ENTRIES_CNT] = &s_call_stats name##_##call_stats; \
  12.     #define STATS_ENTRIES_CNT (STATS_ENTRIES_CNT+1)

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right
worth-right