diff options
| author | meme <meme@users.noreply.github.com> | 2019-10-09 20:15:28 -0400 |
|---|---|---|
| committer | Jordan <jordan@psifertex.com> | 2019-10-16 14:32:01 -0400 |
| commit | ae342d63609b706fe2b0d58695c3ae2043f4667c (patch) | |
| tree | a0fc9499dd99453495a4c935b84a4ff228a4152b /binaryninjacore.h | |
| parent | dc5e614df6d150ef8bfae6d65fd82d45623aa8b6 (diff) | |
Add `printf` annotation
Diffstat (limited to 'binaryninjacore.h')
| -rw-r--r-- | binaryninjacore.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h index ada6c81e..a9dae964 100644 --- a/binaryninjacore.h +++ b/binaryninjacore.h @@ -2103,11 +2103,34 @@ extern "C" BINARYNINJACOREAPI void BNAddOptionalPluginDependency(const char* name); // Logging +#ifdef __GNUC__ +__attribute__ ((format (printf, 2, 3))) +#endif BINARYNINJACOREAPI void BNLog(BNLogLevel level, const char* fmt, ...); + +#ifdef __GNUC__ +__attribute__ ((format (printf, 1, 2))) +#endif BINARYNINJACOREAPI void BNLogDebug(const char* fmt, ...); + +#ifdef __GNUC__ +__attribute__ ((format (printf, 1, 2))) +#endif BINARYNINJACOREAPI void BNLogInfo(const char* fmt, ...); + +#ifdef __GNUC__ +__attribute__ ((format (printf, 1, 2))) +#endif BINARYNINJACOREAPI void BNLogWarn(const char* fmt, ...); + +#ifdef __GNUC__ +__attribute__ ((format (printf, 1, 2))) +#endif BINARYNINJACOREAPI void BNLogError(const char* fmt, ...); + +#ifdef __GNUC__ +__attribute__ ((format (printf, 1, 2))) +#endif BINARYNINJACOREAPI void BNLogAlert(const char* fmt, ...); BINARYNINJACOREAPI void BNRegisterLogListener(BNLogListener* listener); |
