mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
Updated gendynapi.py to handle thread-safety annotations
This commit is contained in:
parent
5c29b58e95
commit
3a940ba8ee
1 changed files with 3 additions and 0 deletions
|
|
@ -147,6 +147,9 @@ def main():
|
|||
func = func.replace("SDL_MALLOC", "");
|
||||
func = func.replace("SDL_ALLOC_SIZE2(1, 2)", "");
|
||||
func = func.replace("SDL_ALLOC_SIZE(2)", "");
|
||||
func = re.sub(" SDL_ACQUIRE\(.*\)", "", func);
|
||||
func = re.sub(" SDL_TRY_ACQUIRE\(.*\)", "", func);
|
||||
func = re.sub(" SDL_RELEASE\(.*\)", "", func);
|
||||
|
||||
# Should be a valid function here
|
||||
match = reg_parsing_function.match(func)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue