summaryrefslogtreecommitdiff
path: root/cesar/lib
diff options
context:
space:
mode:
authordufour2010-02-12 15:51:35 +0000
committerdufour2010-02-12 15:51:35 +0000
commite158f73142cc7109ee715167ff1b587b29755a86 (patch)
tree74dbe8d3c24d1ee24c66ef33a226217f0c6893b6 /cesar/lib
parent3443de8db5c34138ae29a5ad7635ae5acb774143 (diff)
cesar/lib/stats: always define macros whatever stats are enabled or not
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@6715 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/lib')
-rw-r--r--cesar/lib/stats.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/cesar/lib/stats.h b/cesar/lib/stats.h
index 2de3f8fd9f..3ffefa922f 100644
--- a/cesar/lib/stats.h
+++ b/cesar/lib/stats.h
@@ -150,6 +150,16 @@ lib_stats_set_stat_callback (const char *name, lib_stats_cb_r_t callback_read,
lib_stats_cb_w_t callback_write,
lib_stats_types_t type);
+#else /* !CONFIG_STATS */
+
+#define lib_stats_init() ((void) 0)
+#define lib_stats_uninit() ((void) 0)
+#define lib_stats_set_stat_value (name, value, type) ((void) 0)
+#define lib_stats_set_stat_callback(name, callback, type) ((void) 0)
+#define lib_stats_get_page(bitstream, page) ((void) 0)
+
+#endif /* !CONFIG_STATS */
+
/**
* Add a new stat to the stat book using a pointer to a value without
* specifying its type.
@@ -161,16 +171,6 @@ lib_stats_set_stat_callback (const char *name, lib_stats_cb_r_t callback_read,
#define lib_stats_set_stat_value_notype(name, value, mode) \
lib_stats_set_stat_value ((name), (value), (mode), sizeof (*(value)))
-#else /* !CONFIG_STATS */
-
-#define lib_stats_init() ((void) 0)
-#define lib_stats_uninit() ((void) 0)
-#define lib_stats_set_stat_value (name, value, type) ((void) 0)
-#define lib_stats_set_stat_callback(name, callback, type) ((void) 0)
-#define lib_stats_get_page(bitstream, page) ((void) 0)
-
-#endif /* !CONFIG_STATS */
-
END_DECLS
#endif