Commit 52e02998 authored by Jack Jansen's avatar Jack Jansen

Made the example slightly more complete

parent 7a1f6f4f
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
# #
# You may also have to strip some imports out of modulator to make # You may also have to strip some imports out of modulator to make
# it work. # it work.
import genmodule
# #
# Generate code for a simple object with a method called sample # Generate code for a simple object with a method called sample
...@@ -44,3 +47,7 @@ m.name = 'sample' ...@@ -44,3 +47,7 @@ m.name = 'sample'
m.abbrev = 'sample' m.abbrev = 'sample'
m.methodlist = ['newsimple', 'newnumberish', 'newott'] m.methodlist = ['newsimple', 'newnumberish', 'newott']
m.objects = [o, o2, o3] m.objects = [o, o2, o3]
fp = open('EXAMPLEmodule.c', 'w')
genmodule.write(fp, m)
fp.close()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment