Skip to content

Commit e778d78

Browse files
committed
check if unit combinations are actually possible
1 parent de839da commit e778d78

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

unitHeaders.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,11 @@
8585
export_macro = args['exportMacro']
8686
output_dir = args['outDir']
8787
script_dir = os.path.realpath(os.path.dirname(__file__))
88-
combinations = args['combinations']
88+
combinations = []
89+
for comb in args['combinations']:
90+
if comb[0] in units and comb[1] in units and comb[2] in units:
91+
combinations += [comb]
92+
8993
constants = []
9094
for pair in args['constants']:
9195
c_name = pair[0]

0 commit comments

Comments
 (0)