Implement allow_subclassing; fix PYBINDGEN_UNUSED usage.

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2007-08-19 16:35:28 +01:00
1 parent e6cd9187b7
commit 7cd0467823
6 files changed
+106 -20

No files matched your search

+1 -1
View File
@@ -188,7 +188,7 @@ class CppStaticAttributeSetter(PySetter):
self.after_call.write_code('return 0;')
## now generate the function itself
code_sink.writeln(("static int %s(%s * PYBINDGEN_UNUSED dummy, "
code_sink.writeln(("static int %s(%s * PYBINDGEN_UNUSED(dummy), "
"PyObject *value)")
% (self.c_function_name, self.class_.pystruct))
code_sink.writeln('{')