Go to the source code of this file.
| #define | MODULE_MAGIC_COOKIE 0x41503232UL |
| #define | MODULE_MAGIC_NUMBER_MAJOR 20051115 |
| #define | MODULE_MAGIC_NUMBER_MINOR 11 |
| #define | AP_MODULE_MAGIC_AT_LEAST(major, minor) |
| #define | MODULE_MAGIC_NUMBER MODULE_MAGIC_NUMBER_MAJOR |
| #define | MODULE_MAGIC_AT_LEAST old_broken_macro_we_hope_you_are_not_using |
|
|
Value: ((major) < MODULE_MAGIC_NUMBER_MAJOR \ || ((major) == MODULE_MAGIC_NUMBER_MAJOR \ && (minor) <= MODULE_MAGIC_NUMBER_MINOR))
Useful for testing for features.
For example, suppose you wish to use the apr_table_overlap
function. You can do this:
if AP_MODULE_MAGIC_AT_LEAST(19980812,2) ... use apr_table_overlap() else ... alternative code which doesn't use apr_table_overlap() endif
|
|
|
|
|
|
Definition at line 126 of file ap_mmn.h. Referenced by load_module(). |
|
|
Definition at line 157 of file ap_mmn.h. Referenced by ssl_var_lookup(). |
|
|
Definition at line 129 of file ap_mmn.h. Referenced by AP_DECLARE(), lookup_variable(), show_compile_settings(), and show_server_settings(). |
|
|
Definition at line 131 of file ap_mmn.h. Referenced by lookup_variable(), show_compile_settings(), and show_server_settings(). |