-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphp_chiasm.h
More file actions
36 lines (28 loc) · 808 Bytes
/
php_chiasm.h
File metadata and controls
36 lines (28 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**
* Extension header file for chiASM PHP extension
*
* \author Richard Nusser
* \copyright 2017-2018 Richard Nusser
* \license GPLv3 (see http://www.gnu.org/licenses/)
* \link https://github.com/rinusser/chiASM
*/
#ifndef PHP_CHIASM_H
#define PHP_CHIASM_H
extern zend_module_entry chiasm_module_entry;
#define phpext_chiasm_ptr &chiasm_module_entry
#define PHP_CHIASM_VERSION "1.00"
#ifdef PHP_WIN32
# define PHP_CHIASM_API __declspec(dllexport)
#elif defined(__GNUC__) && __GNUC__ >= 4
# define PHP_CHIASM_API __attribute__ ((visibility("default")))
#else
# define PHP_CHIASM_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif
#define CHIASM_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(chiasm, v)
#if defined(ZTS) && defined(COMPILE_DL_CHIASM)
ZEND_TSRMLS_CACHE_EXTERN()
#endif
#endif /* PHP_CHIASM_H */