diff options
author | David Robillard <d@drobilla.net> | 2020-12-26 19:24:15 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-12-31 13:37:55 +0100 |
commit | 9f5fb1cf1b3df6a86d6571886169455d9d9ec393 (patch) | |
tree | 0e7515a3d319eb06b5450e3482055fc269503f1c /src/dylib.h | |
parent | 1fece68f494158fff81fd3dca5a928860d5a6376 (diff) | |
download | suil-9f5fb1cf1b3df6a86d6571886169455d9d9ec393.tar.gz suil-9f5fb1cf1b3df6a86d6571886169455d9d9ec393.tar.bz2 suil-9f5fb1cf1b3df6a86d6571886169455d9d9ec393.zip |
Format all code with clang-format
Diffstat (limited to 'src/dylib.h')
-rw-r--r-- | src/dylib.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/dylib.h b/src/dylib.h index 246693c..d4bb827 100644 --- a/src/dylib.h +++ b/src/dylib.h @@ -19,58 +19,58 @@ #ifdef _WIN32 -#include <windows.h> +# include <windows.h> enum DylibFlags { - DYLIB_GLOBAL = 0, - DYLIB_LAZY = 1, - DYLIB_NOW = 2, + DYLIB_GLOBAL = 0, + DYLIB_LAZY = 1, + DYLIB_NOW = 2, }; static inline void* dylib_open(const char* const filename, const int flags) { - return LoadLibrary(filename); + return LoadLibrary(filename); } static inline int dylib_close(void* const handle) { - return !FreeLibrary((HMODULE)handle); + return !FreeLibrary((HMODULE)handle); } static inline const char* dylib_error(void) { - return "Unknown error"; + return "Unknown error"; } #else -#include <dlfcn.h> +# include <dlfcn.h> enum DylibFlags { - DYLIB_GLOBAL = RTLD_GLOBAL, - DYLIB_LAZY = RTLD_LAZY, - DYLIB_NOW = RTLD_NOW, + DYLIB_GLOBAL = RTLD_GLOBAL, + DYLIB_LAZY = RTLD_LAZY, + DYLIB_NOW = RTLD_NOW, }; static inline void* dylib_open(const char* const filename, const int flags) { - return dlopen(filename, flags); + return dlopen(filename, flags); } static inline int dylib_close(void* const handle) { - return dlclose(handle); + return dlclose(handle); } static inline const char* dylib_error(void) { - return dlerror(); + return dlerror(); } #endif |