summaryrefslogtreecommitdiff
path: root/scripts/gen_amalgamation.py
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-08-10 13:25:53 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-08-10 13:25:53 +1000
commit071a635e63536e50abfad7d5aeca1208dba58025 (patch)
treee96c10f24f0accc4276ccf7d426a263fb8a14ffd /scripts/gen_amalgamation.py
parentdcb9f65b25e59edb21c9c3cac7b32d70ca19eb72 (diff)
impl Default for Camera
Diffstat (limited to 'scripts/gen_amalgamation.py')
-rw-r--r--scripts/gen_amalgamation.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/scripts/gen_amalgamation.py b/scripts/gen_amalgamation.py
deleted file mode 100644
index 45a1c21..0000000
--- a/scripts/gen_amalgamation.py
+++ /dev/null
@@ -1,24 +0,0 @@
-# Generates a single amalgamation C header file that includes all public types and functions.
-#
-# This makes including and linking Celeritas very easy.
-import re
-import sys
-
-def find_pub_functions(filepath):
- pattern = r'PUB\s+(\w+\s+)*(\w+)\s+(\w+)\s*\((.*?)\)'
-
- with open(filepath, 'r') as file:
- content = file.read()
-
- matches = re.finditer(pattern, content, re.MULTILINE)
-
- for match in matches:
- print(match.group(0))
-
-if __name__ == "__main__":
- if len(sys.argv) != 2:
- print("Usage: python script.py <path_to_c_file>")
- sys.exit(1)
-
- file_path = sys.argv[1]
- find_pub_functions(file_path)