diff options
Diffstat (limited to 'tests/simple/simple.cpp')
-rw-r--r-- | tests/simple/simple.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/simple/simple.cpp b/tests/simple/simple.cpp index 8b50496..b3f30bc 100644 --- a/tests/simple/simple.cpp +++ b/tests/simple/simple.cpp @@ -72,7 +72,6 @@ public: void myMethod(Php::Parameters ¶ms) { - } }; @@ -95,8 +94,9 @@ extern "C" // define classes extension.add("my_class", Php::Class<MyCustomClass>({ - Php::Public("a", 123), - Php::Protected("b", "abc") +// Php::Public("a", 123), +// Php::Protected("b", "abc"), + Php::Public("myMethod", static_cast<Php::method_callback_1>(&MyCustomClass::myMethod)) })); // return the module entry |