MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / main

Function main

Scripts/StructPackVerifier.py:610–774  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

608 return Passed
609
610def main():
611 if sys.version_info[0] < 3:
612 logging.critical ("Python 3 or a more recent version is required.")
613
614 if (len(sys.argv) < 2):
615 print ("usage: %s <options> <Header.hpp> <clang arguments...>" % (sys.argv[0]))
616 print ("\t-c1 <Type1>: Base Comparison Type");
617 print ("\t-c2 <Type2>: Second Comparison Type");
618 print ("\t-win: Parse Windows");
619 sys.exit ("\t-no-linux: Do not parse Linux");
620
621 ParseLinux = True
622 ParseWindows = False
623
624 Header = ""
625 Comparison1 = ""
626 Comparison2 = ""
627 BaseArgs = []
628
629 StartOfArgs = 0
630
631 # Parse our arguments
632 ArgIndex = 1
633 while ArgIndex < len(sys.argv):
634 Arg = sys.argv[ArgIndex]
635 if (Arg == "--"):
636 StartOfArgs = ArgIndex + 1
637 break;
638
639 if (Arg == "-c1"):
640 ArgIndex += 1
641 Comparison1 = sys.argv[ArgIndex]
642 elif (Arg == "-c2"):
643 ArgIndex += 1
644 Comparison2 = sys.argv[ArgIndex]
645 elif (Arg == "-win"):
646 ParseWindows = True
647 elif (Arg == "-no-linux"):
648 ParseLinux = False
649 else:
650 Header = Arg
651 StartOfArgs = ArgIndex + 1
652 break
653
654 # Increment
655 ArgIndex += 1
656
657 # Add arguments for clang
658 for ArgIndex in range(StartOfArgs, len(sys.argv)):
659 BaseArgs.append(sys.argv[ArgIndex])
660
661 args_x86_32 = [
662 "-isystem", "/usr/i686-linux-gnu/include",
663 "-O2",
664 "-m32",
665 "--target=i686-linux-unknown",
666 ]
667

Callers 1

Calls 10

printFunction · 0.85
DBListClass · 0.85
GetComparFunction · 0.85
CompareCrossArchFunction · 0.85
CompareAliasesFunction · 0.85
appendMethod · 0.80
FindClangArgumentsFunction · 0.70
ArchDBClass · 0.70
GetDBFunction · 0.70
formatMethod · 0.45

Tested by

no test coverage detected