Skip to content

Commit

Permalink
Add some docs to gen_sig_info.py. NFC (#23281)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbc100 authored Jan 2, 2025
1 parent d640c42 commit 08aecce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/maint/gen_sig_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,16 @@


def ignore_symbol(s, cxx):
# We need to ignore certain symbols here. Specifically, any symbol that is not
# pre-declared in a C/C++ header need to be ignored, otherwise the generated
# file will fail to compile.
if s.startswith('$'):
return True
if s in {'SDL_GetKeyState'}:
return True
# Symbols that start with `emscripten_gl` or `emscripten_alc` are auto-generated
# wrappers around GL and OpenGL symbols. Since they inherit their signature they
# don't need to be auto-generated.
if s.startswith('emscripten_gl') or s.startswith('emscripten_alc'):
return True
if s.startswith('gl') and any(s.endswith(x) for x in ('NV', 'EXT', 'WEBGL', 'ARB', 'ANGLE')):
Expand Down

0 comments on commit 08aecce

Please sign in to comment.