summaryrefslogtreecommitdiff
path: root/include/base.h
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2013-10-14 07:42:37 -0700
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2013-10-14 07:42:37 -0700
commitb2042dbd58c043ab49e9b0dbb51bf8516fe8cea8 (patch)
tree25c7806d4c9d5fb237c0995b4bd12c4664bf853a /include/base.h
parent53272534a76a9d8cbee4ee887e1f360c4a99728b (diff)
Initial attempt to register native C++ class methods directly to PHP
Diffstat (limited to 'include/base.h')
-rw-r--r--include/base.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/base.h b/include/base.h
index 797aff6..6acd805 100644
--- a/include/base.h
+++ b/include/base.h
@@ -69,6 +69,18 @@ public:
};
/**
+ * Definition of a method
+ */
+typedef void (Base::*method_callback_0)();
+typedef void (Base::*method_callback_1)(Parameters &);
+typedef void (Base::*method_callback_2)(Environment &);
+typedef void (Base::*method_callback_3)(Environment &, Parameters &);
+typedef Value (Base::*method_callback_4)();
+typedef Value (Base::*method_callback_5)(Parameters &);
+typedef Value (Base::*method_callback_6)(Environment &);
+typedef Value (Base::*method_callback_7)(Environment &, Parameters &);
+
+/**
* End of namespace
*/
}