2 #ifndef __SFI_WRAPPER_H__
3 #define __SFI_WRAPPER_H__
9 using namespace Rapicorn;
12 #define BSE_ISLIKELY(expr) RAPICORN_ISLIKELY(expr)
13 #define BSE_UNLIKELY(expr) RAPICORN_UNLIKELY(expr)
14 #define BSE_LIKELY BSE_ISLIKELY
18 #define BSE_DEBUG(...) do { if (BSE_UNLIKELY (Bse::_cached_bse_debug)) Bse::bse_debug (NULL, RAPICORN_PRETTY_FILE, __LINE__, Rapicorn::string_format (__VA_ARGS__)); } while (0)
19 #define BSE_KEY_DEBUG(key,...) do { if (BSE_UNLIKELY (Bse::_cached_bse_debug)) Bse::bse_debug (key, RAPICORN_PRETTY_FILE, __LINE__, Rapicorn::string_format (__VA_ARGS__)); } while (0)
23 bool _bse_debug_enabled (
const char *key);
47 const char *value_name;
48 const char *value_string;
49 long double value_num;
54 bool birnet_file_check (
const char *file,
56 bool birnet_file_equals (
const char *file1,
59 #define sfi_error(...) RAPICORN_FATAL (__VA_ARGS__)
60 #define sfi_warning(...) RAPICORN_CRITICAL (__VA_ARGS__)
61 #define sfi_info(...) BSE_DEBUG (__VA_ARGS__)
62 #define sfi_diag(...) BSE_DEBUG (__VA_ARGS__)
65 void sfi_url_show (
const char *url);
bool bse_flipper_check(const char *key)
Check if the feature toggle key is enabled in #$BSE_FLIPPER.
Definition: sfiwrapper.cc:37
Definition: sfiwrapper.hh:45
bool volatile _cached_bse_debug
Caching flag to inhibit useless bse_debug() calls.
Definition: sfiwrapper.cc:11
vector< String > StringVector
void bse_debug(const char *key, const char *file_path, const int line, const String &message)
Issue a debugging message, configurable via #$BSE_DEBUG.
Definition: sfiwrapper.cc:15
bool bse_debug_enabled(const char *key)
Check if debugging is enabled for key.
Definition: sfiwrapper.hh:24
#define BSE_UNLIKELY(expr)
Compiler hint that expr is unlikely to be true.
Definition: sfiwrapper.hh:13