Skip to content

Commit

Permalink
Add ZEND_GET_MODULE(name). This is a short-cut for the common
Browse files Browse the repository at this point in the history
get_module function.
  • Loading branch information
Sascha Schumann committed May 2, 2000
1 parent f8f7dcf commit 0b6d923
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Zend/zend_API.h
Expand Up @@ -51,6 +51,8 @@
#define ZEND_GINIT_FUNCTION(module) int ZEND_GINIT(module)(GINIT_FUNC_ARGS) #define ZEND_GINIT_FUNCTION(module) int ZEND_GINIT(module)(GINIT_FUNC_ARGS)
#define ZEND_GSHUTDOWN_FUNCTION(module) int ZEND_GSHUTDOWN(module)(void) #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) \ #define ZEND_BEGIN_MODULE_GLOBALS(module_name) \
typedef struct _zend_##module_name##_globals { typedef struct _zend_##module_name##_globals {
Expand Down

0 comments on commit 0b6d923

Please sign in to comment.