diff options
Diffstat (limited to 'libnautilus/nautilus-lib-self-check-functions.h')
-rw-r--r-- | libnautilus/nautilus-lib-self-check-functions.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/libnautilus/nautilus-lib-self-check-functions.h b/libnautilus/nautilus-lib-self-check-functions.h index 2b68bd8d6..eff8b1312 100644 --- a/libnautilus/nautilus-lib-self-check-functions.h +++ b/libnautilus/nautilus-lib-self-check-functions.h @@ -32,8 +32,17 @@ void nautilus_run_lib_self_checks (void); the self-check framework take way too long (since one file would have to include everything). - So we put the prototypes here instead. + So we put the list of functions here instead. + + Instead of just putting prototypes here, we put this macro that + can be used to do operations on the whole list of functions. */ -void nautilus_self_check_gdk_extensions (void); -void nautilus_self_check_background (void); +#define NAUTILUS_LIB_FOR_EACH_SELF_CHECK_FUNCTION(macro) \ + macro(nautilus_self_check_background) \ + macro(nautilus_self_check_directory) \ + macro(nautilus_self_check_gdk_extensions) \ +/* Add new self-check functions to the list above this line. */ + +/* Generate prototypes for all the functions. */ +NAUTILUS_LIB_FOR_EACH_SELF_CHECK_FUNCTION (NAUTILUS_SELF_CHECK_FUNCTION_PROTOTYPE) |