diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-08-25 17:40:03 +0200 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-08-25 17:40:03 +0200 |
commit | e14055694478d70e58b5fc653b08a9a514bbc455 (patch) | |
tree | ab47d723699a7fe86f47f68c182ab695bf9b3bab /tests/simple/simple.cpp | |
parent | e838e180f5bbcf19e7235f30311645e942ff92d2 (diff) |
{more work in progress: the function that was defined with c++ now gets calls, but it does not yet call the actual implementation
Diffstat (limited to 'tests/simple/simple.cpp')
-rw-r--r-- | tests/simple/simple.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/simple/simple.cpp b/tests/simple/simple.cpp index 34a12ce..ec39770 100644 --- a/tests/simple/simple.cpp +++ b/tests/simple/simple.cpp @@ -6,6 +6,7 @@ * @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com> * @copyright 2013 Copernica BV */ +#include <string> #include <phpcpp.h> #include <iostream> @@ -46,7 +47,9 @@ public: /** * Constructor */ - SimpleExtension() : Extension("simple", "1.0") + SimpleExtension() : Extension("simple", "1.0", { + PhpCpp::Function("hallo") + }) { } @@ -68,5 +71,8 @@ public: } }; + + + // create the object for the PHP extension PHP_CPP_EXTENSION(SimpleExtension); |