summaryrefslogtreecommitdiff
path: root/src/classbase.cpp
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-01 10:51:37 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-01 10:51:37 +0100
commita05b25d54df9d42a8fe4632073538ba47eb710ab (patch)
tree30d8aa3bcf304800ba4c02ef8eaffb695bb10a0f /src/classbase.cpp
parentc8d1519f31baed0fb399dac9333e48e2f9e910ad (diff)
fixed various compile issues and namespace implementation
Diffstat (limited to 'src/classbase.cpp')
-rw-r--r--src/classbase.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/classbase.cpp b/src/classbase.cpp
index b38f6d3..71dd09d 100644
--- a/src/classbase.cpp
+++ b/src/classbase.cpp
@@ -165,9 +165,13 @@ void ClassBase::initialize(const std::string &prefix)
// the class entry
zend_class_entry entry;
+ std::cout << "prefix " << prefix << std::endl;
+
// update the name
if (prefix.size() > 0) _name = prefix + "\\" + _name;
+ std::cout << "init class " << _name << std::endl;
+
// initialize the class entry
INIT_CLASS_ENTRY_EX(entry, _name.c_str(), _name.size(), entries());
@@ -272,7 +276,7 @@ void ClassBase::add(const char *name, std::nullptr_t value, int flags)
// add property
_members.push_back(std::make_shared<NullMember>(name, flags));
}
-
+
/**
* Add a property to the class
* @param name Name of the property
@@ -368,7 +372,7 @@ void ClassBase::add(const char *name, double value, int flags)
// add property
_members.push_back(std::make_shared<FloatMember>(name, value, flags));
}
-
+
/**
* End namespace
*/