Cleanups.
This commit is contained in:
1 parent
8a890c4875
commit
613a4e98a4
5 files changed
+3
-6
No files matched your search
@@ -599,6 +599,7 @@ class AbstractXpto
|
||||
{
|
||||
public:
|
||||
AbstractXpto () {}
|
||||
virtual ~AbstractXpto () {}
|
||||
|
||||
virtual void something (int x) const = 0;
|
||||
};
|
||||
|
||||
@@ -16,7 +16,6 @@ import foomodulegen_common
|
||||
def my_module_gen():
|
||||
out = FileCodeSink(sys.stdout)
|
||||
pygen_file = open(sys.argv[2], "wt")
|
||||
pybindgen.write_preamble(out)
|
||||
module_parser = ModuleParser('foo2', '::')
|
||||
module = module_parser.parse([sys.argv[1]], includes=['"foo.h"'], pygen_sink=FileCodeSink(pygen_file))
|
||||
pygen_file.close()
|
||||
|
||||
@@ -16,12 +16,11 @@ import foomodulegen_common
|
||||
|
||||
|
||||
def my_module_gen(out_file):
|
||||
pybindgen.write_preamble(FileCodeSink(out_file))
|
||||
|
||||
print >> out_file, "#include \"foo.h\""
|
||||
|
||||
mod = Module('foo')
|
||||
|
||||
mod.add_include ('"foo.h"')
|
||||
|
||||
Foo = mod.add_class('Foo', automatic_type_narrowing=True)
|
||||
|
||||
Foo.add_static_attribute('instance_count', ReturnValue.new('int'))
|
||||
|
||||
@@ -35,7 +35,6 @@ def my_module_gen():
|
||||
foomodulegen_generated.register_functions(root_module)
|
||||
foomodulegen_common.customize_module(root_module)
|
||||
|
||||
pybindgen.write_preamble(out)
|
||||
root_module.generate(out)
|
||||
|
||||
|
||||
|
||||
@@ -54,7 +54,6 @@ def my_module_gen():
|
||||
foomodulegen_split.register_functions(root_module)
|
||||
foomodulegen_common.customize_module(root_module)
|
||||
|
||||
#pybindgen.write_preamble(out)
|
||||
root_module.generate(out)
|
||||
|
||||
out.close()
|
||||
|
||||
Reference in new issue
Block a user