Browse Source

Add ZEND_GET_MODULE(name). This is a short-cut for the common

get_module function.
PHP-4.0.5
Sascha Schumann 26 years ago
parent
commit
0b6d923bae
  1. 2
      Zend/zend_API.h

2
Zend/zend_API.h

@ -51,6 +51,8 @@
#define ZEND_GINIT_FUNCTION(module) int ZEND_GINIT(module)(GINIT_FUNC_ARGS)
#define ZEND_GSHUTDOWN_FUNCTION(module) int ZEND_GSHUTDOWN(module)(void)
#define ZEND_GET_MODULE(name) \
ZEND_DLEXPORT zend_module_entry *get_module(void) { return &name##_module_entry; }
#define ZEND_BEGIN_MODULE_GLOBALS(module_name) \
typedef struct _zend_##module_name##_globals {

Loading…
Cancel
Save