summaryrefslogtreecommitdiff
path: root/Zend/zend_API.h
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-05-02 01:33:18 +0000
committerSascha Schumann <sas@php.net>2000-05-02 01:33:18 +0000
commit0b6d923bae34f1a3938fa075b957bf56a0de8ddb (patch)
tree0a5230807da4d056fa0f98c3be434ba7e4cd85a0 /Zend/zend_API.h
parentf8f7dcf0cfc989eedab51eff0994af8f3f2a4848 (diff)
downloadphp-git-0b6d923bae34f1a3938fa075b957bf56a0de8ddb.tar.gz
Add ZEND_GET_MODULE(name). This is a short-cut for the common
get_module function.
Diffstat (limited to 'Zend/zend_API.h')
-rw-r--r--Zend/zend_API.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_API.h b/Zend/zend_API.h
index d151efe0ca..daab74a0a3 100644
--- a/Zend/zend_API.h
+++ b/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 {