blob: 2a8517ae02934e26060d7a122bcce48dd8bfa105 (
plain)
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
|
/**
* phpcpp.h
*
* Library to build PHP extensions with CPP
*
* @copyright 2013 CopernicA BV
* @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
*/
/**
* Include all headers files that are related to this library
*/
#include <phpcpp/extension.h>
/**
* Macro to export a function
*/
#if defined(__GNUC__) && __GNUC__ >= 4
# define PHPCPP_EXPORT __attribute__ ((visibility("default")))
#else
# define PHPCPP_EXPORT
#endif
/**
* Macro to activate the extension
*/
#define PHP_CPP_EXTENSION(classname) extern "C" { PHPCPP_EXPORT void *get_module() { static classname extension; return extension.entry(); } }
|