summaryrefslogtreecommitdiff
path: root/ui/uitypes.h
diff options
context:
space:
mode:
authorKyleMiles <krm504@nyu.edu>2022-01-27 22:43:28 -0500
committerKyleMiles <krm504@nyu.edu>2022-01-28 00:24:06 -0500
commit6812c973c9fa9b4ad642ab81856c05f87bd6fcc4 (patch)
treedace4156d03148bcaf02df138ab4e0d93e61bc6f /ui/uitypes.h
parent519c9db22367f2659d1a54599fab47e6313be06e (diff)
Format All Files
Diffstat (limited to 'ui/uitypes.h')
-rw-r--r--ui/uitypes.h51
1 files changed, 24 insertions, 27 deletions
diff --git a/ui/uitypes.h b/ui/uitypes.h
index 3ed27da8..62111001 100644
--- a/ui/uitypes.h
+++ b/ui/uitypes.h
@@ -16,44 +16,41 @@
#define BN_MINIMUM_UI_ABI_VERSION 4
#ifdef __GNUC__
-# ifdef BINARYNINJAUI_LIBRARY
-# define BINARYNINJAUIAPI __attribute__((visibility("default")))
-# else
-# define BINARYNINJAUIAPI
-# endif
+ #ifdef BINARYNINJAUI_LIBRARY
+ #define BINARYNINJAUIAPI __attribute__((visibility("default")))
+ #else
+ #define BINARYNINJAUIAPI
+ #endif
#else
-#ifdef _MSC_VER
-# ifndef DEMO_VERSION
-# ifdef BINARYNINJAUI_LIBRARY
-# define BINARYNINJAUIAPI __declspec(dllexport)
-# else
-# define BINARYNINJAUIAPI __declspec(dllimport)
-# endif
-# else
-# define BINARYNINJAUIAPI
-# endif
-#else
-#define BINARYNINJAUIAPI
-#endif
+ #ifdef _MSC_VER
+ #ifndef DEMO_VERSION
+ #ifdef BINARYNINJAUI_LIBRARY
+ #define BINARYNINJAUIAPI __declspec(dllexport)
+ #else
+ #define BINARYNINJAUIAPI __declspec(dllimport)
+ #endif
+ #else
+ #define BINARYNINJAUIAPI
+ #endif
+ #else
+ #define BINARYNINJAUIAPI
+ #endif
#endif
#ifdef BINARYNINJAUI_PYTHON_BINDINGS
-#include "bindings.h"
+ #include "bindings.h"
#endif
// The BN_DECLARE_UI_ABI_VERSION must be included in native UI plugin modules. If
// the ABI version is not declared, the UI will not load the plugin.
#ifdef DEMO_VERSION
-#define BN_DECLARE_UI_ABI_VERSION
+ #define BN_DECLARE_UI_ABI_VERSION
#else
-#define BN_DECLARE_UI_ABI_VERSION \
- extern "C" \
- { \
- BINARYNINJAPLUGIN uint32_t UIPluginABIVersion() \
+ #define BN_DECLARE_UI_ABI_VERSION \
+ extern "C" \
{ \
- return BN_CURRENT_UI_ABI_VERSION; \
- } \
- }
+ BINARYNINJAPLUGIN uint32_t UIPluginABIVersion() { return BN_CURRENT_UI_ABI_VERSION; } \
+ }
#endif
// The Python bindings generator does not recognize automatic conversion of API types into their