Made the example slightly more complete

This commit is contained in:
Jack Jansen 1995-05-16 13:43:09 +00:00
parent 7a1f6f4f2a
commit 52e02998ef
1 changed files with 7 additions and 0 deletions

View File

@ -3,6 +3,9 @@
#
# You may also have to strip some imports out of modulator to make
# it work.
import genmodule
#
# Generate code for a simple object with a method called sample
@ -44,3 +47,7 @@ m.name = 'sample'
m.abbrev = 'sample'
m.methodlist = ['newsimple', 'newnumberish', 'newott']
m.objects = [o, o2, o3]
fp = open('EXAMPLEmodule.c', 'w')
genmodule.write(fp, m)
fp.close()