google / google/shaderc

BUG REPORT: Cannot use the ternary `?` operator in preprocessor macros.

Open
#1,155 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2.2k
Forks
445
Avg merge
11h 6m
Merged PRs (30d)
6

Description

We're using the `v2020.3` tag

I attach the file we're trying to feed into `shaderc`, it doesn't like our `IRR_GLSL_MAX` macro.

GCC with the `-E` option consumes it and produces the expected output, feel free to check with godbolt.org
[postprocessed.comp.txt](https://github.com/google/shaderc/files/5583125/postprocessed.comp.txt)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.