Restructure to keep __main__ free to be used when using codegen as part
of another project
This commit is contained in:
parent
acaae99107
commit
87abfe8900
@ -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()
|
|
||||||
|
6
codegen/dev_main.py
Normal file
6
codegen/dev_main.py
Normal file
@ -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()
|
Loading…
Reference in New Issue
Block a user