MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / Main

Function Main

tools/cpp_format_struct_table.py:9–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8
9def Main():
10 root = pathlib.Path(__file__).resolve().parent.parent
11 parser = argparse.ArgumentParser()
12 parser.add_argument(
13 "files",
14 nargs="*",
15 default=[
16 root.joinpath("Source/effects.cpp"),
17 root.joinpath("Source/itemdat.cpp"),
18 root.joinpath("Source/misdat.cpp"),
19 root.joinpath("Source/monstdat.cpp"),
20 root.joinpath("Source/objdat.cpp"),
21 root.joinpath("Source/spelldat.cpp"),
22 ],
23 )
24 args = parser.parse_args()
25
26 for file in args.files:
27 Process(file)
28
29
30class LineState(enum.Enum):

Callers 1

Calls 1

ProcessFunction · 0.85

Tested by

no test coverage detected