2 #ifndef __SFI_WRAPPER_H__
3 #define __SFI_WRAPPER_H__
6 #include <rapicorn-core.hh>
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);
32 using Rapicorn::uint8;
33 using Rapicorn::uint16;
34 using Rapicorn::uint32;
35 using Rapicorn::uint64;
37 using Rapicorn::int16;
38 using Rapicorn::int32;
39 using Rapicorn::int64;
40 using Rapicorn::unichar;
47 const char *value_name;
48 const char *value_string;
49 long double value_num;
51 void sfi_init (
int *argcp,
char **argv,
const char *app_name,
const Bse::StringVector &args = Bse::StringVector());
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
The Bse namespace contains all functions of the synthesis engine.
Definition: bstbseutils.cc:67
Definition: bstserverapi.cc:544
Definition: sfiwrapper.hh:45
bool volatile _cached_bse_debug
Caching flag to inhibit useless bse_debug() calls.
Definition: sfiwrapper.cc:11
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