mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 01:06:00 +08:00
[c][cpp] Formatter pass.
This commit is contained in:
parent
7cf42c814b
commit
2022713bd2
@ -26,7 +26,7 @@ spotless {
|
||||
'spine-sfml/**/*.h',
|
||||
'spine-ue4/**/*.cpp',
|
||||
'spine-ue4/**/*.h'
|
||||
clangFormat("12.0.1").pathToExe("$System.env.CLANGFORMAT").style('file')
|
||||
clangFormat("13.0.1").pathToExe("$System.env.CLANGFORMAT").style('file')
|
||||
}
|
||||
|
||||
typescript {
|
||||
|
||||
@ -28,9 +28,11 @@ setup
|
||||
# Execute spotless and dotnet-format
|
||||
pushd $dir/..
|
||||
./formatters/gradlew spotlessApply
|
||||
if [ "$1" != "skipdotnet" ] ; then
|
||||
dotnet-format spine-csharp/spine-csharp.sln
|
||||
dotnet-format -f spine-monogame
|
||||
dotnet-format -f spine-unity
|
||||
fi
|
||||
popd
|
||||
|
||||
# Delete Gradle, dotnet-format, and clang-format config files in root
|
||||
|
||||
@ -101,7 +101,7 @@ static char *string_append(char *str, const char *b) {
|
||||
}
|
||||
|
||||
static char *string_append_int(char *str, int value) {
|
||||
char intStr[20];;
|
||||
char intStr[20];
|
||||
sprintf(intStr, "%i", value);
|
||||
return string_append(str, intStr);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user