Permalink
Browse files

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

get_module function.
  • Loading branch information...
1 parent f8f7dcf commit 0b6d923bae34f1a3938fa075b957bf56a0de8ddb Sascha Schumann committed May 2, 2000
Showing with 2 additions and 0 deletions.
  1. +2 −0 Zend/zend_API.h
View
@@ -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 {

0 comments on commit 0b6d923

Please sign in to comment.