diff options
Diffstat (limited to 'include/fastcall.h')
-rw-r--r-- | include/fastcall.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/fastcall.h b/include/fastcall.h new file mode 100644 index 0000000..778a9b2 --- /dev/null +++ b/include/fastcall.h @@ -0,0 +1,18 @@ +/** + * fastcall.h + * + * This file holds some PHP functions implementation in C directly. + * + */ + +namespace Php { + + inline bool is_a(const Value &obj, const std::string classname, bool allow_string = false) { + return obj.is(classname, allow_string); + } + inline bool is_subclass_of(const Value &obj, const std::string classname, bool allow_string = true) { + return obj.isSubClassOf(classname, allow_string); + } + +} + |