Skip to content

Commit 320a5e6

Browse files
committed
Run clang-format
1 parent 2adc0c5 commit 320a5e6

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

shared/public/system.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
# include "Hash/CityHash.h"
1616
#endif
1717
#ifdef INK_ENABLE_STL
18-
#ifdef INK_ENABLE_EXCEPTIONS
19-
# include <exception>
20-
#endif
18+
# ifdef INK_ENABLE_EXCEPTIONS
19+
# include <exception>
20+
# endif
2121
# include <stdexcept>
2222
# include <optional>
2323
# include <cctype>
@@ -32,8 +32,8 @@
3232
// Platform specific defines //
3333

3434
#ifdef INK_ENABLE_UNREAL
35-
# define inkZeroMemory(buff, len) FMemory::Memset(buff, 0, len)
36-
# define FORMAT_STRING_STR "%hs"
35+
# define inkZeroMemory(buff, len) FMemory::Memset(buff, 0, len)
36+
# define FORMAT_STRING_STR "%hs"
3737
#else
3838
# define inkZeroMemory ink::internal::zero_memory
3939
# define FORMAT_STRING_STR "%s"
@@ -43,8 +43,8 @@
4343
# define inkAssert(condition, text, ...) checkf(condition, TEXT(text), ##__VA_ARGS__)
4444
# define inkFail(text, ...) checkf(false, TEXT(text), ##__VA_ARGS__)
4545
#else
46-
# define inkAssert ink::ink_assert
47-
# define inkFail(...) ink::ink_assert(false, __VA_ARGS__)
46+
# define inkAssert ink::ink_assert
47+
# define inkFail(...) ink::ink_assert(false, __VA_ARGS__)
4848
#endif
4949

5050
namespace ink
@@ -215,19 +215,19 @@ void ink_assert(bool condition, const char* msg = nullptr, Args... args)
215215
size_t size = snprintf(nullptr, 0, msg, args...) + 1;
216216
char* message = static_cast<char*>(malloc(size));
217217
snprintf(message, size, msg, args...);
218-
#ifdef INK_ENABLE_EXCEPTIONS
218+
# ifdef INK_ENABLE_EXCEPTIONS
219219
throw ink_exception(message);
220-
#else
220+
# else
221221
fprintf(stderr, "Ink Assert: %s\n", message);
222222
abort();
223-
#endif
223+
# endif
224224
} else {
225-
#ifdef INK_ENABLE_EXCEPTIONS
225+
# ifdef INK_ENABLE_EXCEPTIONS
226226
throw ink_exception(msg);
227-
#else
227+
# else
228228
fprintf(stderr, "Ink Assert: %s\n", msg);
229229
abort();
230-
#endif
230+
# endif
231231
}
232232
}
233233
}

0 commit comments

Comments
 (0)