Skip to content

Commit 09e0319

Browse files
...
1 parent 71a877e commit 09e0319

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ jobs:
4343
else
4444
cp -r embree_temp/* thirdparty/embree/ 2>/dev/null || mkdir -p thirdparty/embree && cp -r embree_temp/* thirdparty/embree/
4545
fi
46+
# Set EMBREE_LOCATION for CMake
47+
echo "EMBREE_LOCATION=$PWD/thirdparty/embree" >> $GITHUB_ENV
4648
4749
- name: Install OIDN (macOS)
4850
if: runner.os == 'macOS'

scripts/custom_boolean_check.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ def check_boolean_style(content):
2323
true_compare_pattern = r"(\w+)\s*==\s*true"
2424

2525
for line_num, line in enumerate(content.split("\n"), 1):
26+
# Skip preprocessor directives
27+
stripped_line = line.strip()
28+
if stripped_line.startswith("#"):
29+
continue
30+
2631
# Check for !boolean_variable usage
2732
if re.search(not_bool_pattern, line):
2833
match = re.search(not_bool_pattern, line)

0 commit comments

Comments
 (0)