aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken/pyenum.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-02-20 14:37:51 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-02-20 18:20:05 -0300
commit4d89c3d81477a730b7d7ce6c9b5c062ee8cd1ec7 (patch)
treead6d249bd8d952bc8db3b31aaa3eb0f9279bcf41 /libshiboken/pyenum.h
parent08acf3d1c3f5fd364ebd29ae00f48b6f6ad2f97d (diff)
All enums are now extensible to match the C++ casting behaviour.
Now the user can build new values of a particular enum type passing an integer to its constructor. Thus, the following C++ code: MyEnum val = (MyEnum) 1; is the equivalent of this Python code: val = MyEnum(1) The enum unit tests were also updated. Reviewed by Lauro Moura <lauro.neto@openbossa.org>
Diffstat (limited to 'libshiboken/pyenum.h')
-rw-r--r--libshiboken/pyenum.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/libshiboken/pyenum.h b/libshiboken/pyenum.h
index 4e7d6bf20..cb8bb48fb 100644
--- a/libshiboken/pyenum.h
+++ b/libshiboken/pyenum.h
@@ -52,7 +52,6 @@ typedef struct {
LIBSHIBOKEN_API PyAPI_FUNC(PyObject*) SbkEnumObject_repr(PyObject* self);
LIBSHIBOKEN_API PyAPI_FUNC(PyObject*) SbkEnumObject_name(PyObject* self);
-LIBSHIBOKEN_API PyAPI_FUNC(PyObject*) SbkEnumObject_NonExtensibleNew(PyTypeObject* type, PyObject* args, PyObject* kwds);
} // extern "C"