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