Skip to content

options/internal: fix static asserts for pre-C++03 #1774

options/internal: fix static asserts for pre-C++03

options/internal: fix static asserts for pre-C++03 #1774

Workflow file for this run

name: Detect ifdef/defined (mis)use
on: [pull_request, merge_group]
jobs:
find-misuse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
printf '(^#ifn?def[[:space:]]+|defined[[:space:]]*[(][[:space:]]*)((%s)([^_A-Za-z0-9]|$))\0' \
"$(printf '%s' "$(awk '/#mesondefine/ { print $2 }' mlibc-config.h.in)" | tr '\n' '|')" \
| { ! xargs -0I '{}' grep --color=always -PR '{}' \
|| { echo 'found misuse'; exit 1; }; }
# vim: set sw=2 :