Restructure to keep __main__ free to be used when using codegen as part
of another project
This commit is contained in:
1 parent
acaae99107
commit
87abfe8900
4 files changed
+11
-5
No files matched your search
+4
-4
@@ -1,6 +1,6 @@
|
|||||||
from .codegen import test_str8, test_doubly_linked_list, test_typed_array
|
def main():
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
test_str8()
|
main()
|
||||||
test_typed_array()
|
|
||||||
test_doubly_linked_list()
|
|
||||||
File renamed without changes.
@@ -0,0 +1,6 @@
|
|||||||
|
from .codegen_example import test_str8, test_doubly_linked_list, test_typed_array
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
test_str8()
|
||||||
|
test_typed_array()
|
||||||
|
test_doubly_linked_list()
|
||||||
Reference in new issue
Block a user