mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-21 15:21:15 +00:00
15 lines
525 B
Python
15 lines
525 B
Python
#!/usr/bin/python3
|
|
import argparse
|
|
import os
|
|
|
|
parser = argparse.ArgumentParser(allow_abbrev=False,
|
|
description='Verify Exports: Compare the exports of two DLLs.')
|
|
parser.add_argument('cppfile', metavar='cppfile', help='Path to the C++ File to preprocess.')
|
|
|
|
args = parser.parse_args()
|
|
if not os.path.isfile(args.cppfile):
|
|
parser.error('Specified C++ file does not exist.')
|
|
|
|
os.system('cl.exe /EP /P ' + args.cppfile)
|
|
|
|
print('Preprocessed file. It will be in the directory you executed in this command as "(filename).i".') |