/tools/gen_api_header.sh

This commit is contained in:
veclav talica 2024-10-07 18:06:10 +03:00
parent 33523c7980
commit 578ceabd0e
2 changed files with 7 additions and 0 deletions

4
tools/gen_api_header.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/env sh
# single header api generator with clang
clang -I./ -P -E -nostdinc -nobuiltininc -DTWN_NOT_C $TWNROOT/include/twn_game_api.h | clang-format

View File

@ -36,6 +36,9 @@ case "$1" in
esac
;;
api-gen ) "$toolpath"/gen_api_header.sh
;;
* ) echo "Unknown command."
;;
esac