Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 52e0299

Browse files
committed
Made the example slightly more complete
1 parent 7a1f6f4 commit 52e0299

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Tools/modulator/EXAMPLE.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
#
44
# You may also have to strip some imports out of modulator to make
55
# it work.
6+
7+
import genmodule
8+
69
#
710
# Generate code for a simple object with a method called sample
811

@@ -44,3 +47,7 @@
4447
m.abbrev = 'sample'
4548
m.methodlist = ['newsimple', 'newnumberish', 'newott']
4649
m.objects = [o, o2, o3]
50+
51+
fp = open('EXAMPLEmodule.c', 'w')
52+
genmodule.write(fp, m)
53+
fp.close()

0 commit comments

Comments
 (0)