AP

xiaoxiao2021-04-02  234

#ifndef module_magic_number_major

#DEFINE MODULE_MAGIC_NUMBER_MAJOR 19980917

#ENDIF

#DEFINE MODULE_MAGIC_NUMBER_MINOR 0 / * 0 ... n * /

#DEFINE MODULE_MAGIC_NUMBER MODULE_MAGIC_NUMBER_MAJOR / * BACKWARD COMPAT * /

/ * Useful for testing for features. * /

#define module_magic_at_least (Major, Minor) /

(Major)> module_magic_number_major /

|| ((Major) == Module_magic_Number_major /

&& (minor)> = MODULE_MAGIC_NUMBER_MINOR)))

/ * For esample, suppose you wish to use the ap_overlap_tables

Function. You can do this:

#if module_magic_at_least (19980812, 2)

... USE AP_OVERLAP_TABLES ()

#ELSE

... Alternative Code Which Doesn't Use AP_OVERLAP_TABLES ()

#ENDIF

* /

#ENDIF / *! Apache_ap_mmn_h * /

转载请注明原文地址:https://www.9cbs.com/read-131332.html

New Post(0)