Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
bcore.hh File Reference
#include <rapicorn-core.hh>
#include <sfi/glib-extra.hh>
Include dependency graph for bcore.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Bse
 

Macros

#define BSE_ISLIKELY(expr)
 
#define BSE_UNLIKELY(expr)
 
#define BSE_ABS(a)
 
#define BSE_MIN(a, b)
 
#define BSE_MAX(a, b)
 
#define BSE_CLAMP(v, mi, ma)
 
#define BSE_ARRAY_SIZE(array)
 
#define BSE_ALIGN(size, base)
 
#define BSE_CPP_STRINGIFY(s)
 
#define BSE__HERE__
 
#define BSE_PURE
 
#define BSE_MALLOC
 
#define BSE_SENTINEL
 
#define BSE_NORETURN
 
#define BSE_CONST
 
#define BSE_UNUSED
 
#define BSE_USED
 
#define BSE_NO_INSTRUMENT
 
#define BSE_DEPRECATED
 
#define BSE_ALWAYS_INLINE
 
#define BSE_NOINLINE
 
#define BSE_CONSTRUCTOR
 
#define BSE_MAY_ALIAS
 
#define BSE_CLASS_NON_COPYABLE(ClassName)
 
#define BSE_DECLARE_VLA(Type, var, count)
 
#define BSE_RETURN_UNLESS(cond, ...)
 
#define BSE_UNIX_PATHS
 
#define BSE_DIR_SEPARATOR
 
#define BSE_DIR_SEPARATOR_S
 
#define BSE_SEARCHPATH_SEPARATOR
 
#define BSE_SEARCHPATH_SEPARATOR_S
 
#define BSE_IS_ABSPATH(p)
 
#define BSE_ASSERT_RETURN(cond, ...)
 
#define BSE_ASSERT_RETURN_UNREACHED(...)
 
#define assert_return(cond, ...)
 
#define assert_return_unreached(...)
 
#define ISLIKELY(cond)
 
#define UNLIKELY(cond)
 
#define return_unless(cond, ...)
 

Functions

template<class... Args>
void Bse::fatal (const char *format, const Args &...args)
 
template<class... Args>
void Bse::warning (const char *format, const Args &...args)
 
template<class... Args>
void Bse::warn (const char *format, const Args &...args)
 
template<class... Args>
void Bse::info (const char *format, const Args &...args)
 
template<class... Args>
void Bse::dump (const char *conditional, const char *format, const Args &...args) RAPICORN_ALWAYS_INLINE
 
template<class... Args>
void Bse::debug (const char *conditional, const char *format, const Args &...args) RAPICORN_ALWAYS_INLINE
 
bool Bse::debug_enabled (const char *conditional)
 
bool Bse::Internal::debug_key_enabled (const char *conditional)
 
void Bse::Internal::diagnostic (char kind, const std::string &message)
 
void Bse::Internal::force_abort ()
 
template<class... Args>
void RAPICORN_ALWAYS_INLINE Bse::dump (const char *conditional, const char *format, const Args &...args)
 
template<class... Args>
void RAPICORN_ALWAYS_INLINE Bse::debug (const char *conditional, const char *format, const Args &...args)
 

Macro Definition Documentation

#define assert_return (   cond,
  ... 
)

Return from the current function if cond is unmet and issue an assertion warning.

Referenced by aux_vector_get(), Bse::TickStamp::Wakeup::awake_before(), bse_approx_atan1_prescale(), bse_engine_add_user_callback(), bse_engine_configure(), bse_engine_constrain(), bse_engine_dispatch(), bse_engine_init(), bse_engine_user_thread_collect(), bse_engine_wait_on_trans(), bse_idle_remove(), bse_item_cross_link(), bse_item_cross_unlink(), bse_item_current_musical_tuning(), bse_item_gather_items(), bse_item_gather_items_typed(), bse_item_set_internal(), bse_item_uncross_links(), bse_janitor_progress(), bse_job_access(), bse_job_add_poll(), bse_job_add_timer(), bse_job_boundary_access(), bse_job_boundary_discard(), bse_job_connect(), bse_job_debug(), bse_job_discard(), bse_job_disconnect(), bse_job_flow_access(), bse_job_force_reset(), bse_job_integrate(), bse_job_jconnect(), bse_job_jdisconnect(), bse_job_kill_inputs(), bse_job_kill_outputs(), bse_job_probe_request(), bse_job_remove_poll(), bse_job_resume_at(), bse_job_suspend_now(), bse_midi_free_event(), bse_module_has_source(), bse_module_is_scheduled(), bse_module_new(), bse_module_new_virtual(), bse_module_tick_stamp(), bse_object_strdup_debug_handle(), bse_procedure_collect_input_args(), bse_procedure_marshal_valist(), bse_server_get(), bse_server_script_error(), bse_server_script_start(), bse_snet_intern_child(), bse_storage_parse_item_link(), bse_sub_synth_set_midi_channel(), bse_sub_synth_set_null_shortcut(), bse_trans_add(), bse_trans_commit(), bse_trans_commit_delayed(), bse_trans_dismiss(), bse_trans_merge(), bst_gmask_foreach(), bst_gmask_get_action(), bst_gmask_get_aux1(), bst_gmask_get_aux2(), bst_gmask_get_aux3(), bst_gmask_get_prompt(), bst_gmask_pack(), bst_gmask_quick(), bst_gmask_set_aux1(), bst_gmask_set_aux2(), bst_gmask_set_aux3(), bst_gmask_set_column(), bst_gmask_set_prompt(), bst_gmask_set_tip(), g_object_get_double(), g_object_get_long(), g_object_set_double(), g_object_set_long(), g_sname_equals(), gdk_color_from_rgba(), gnome_canvas_set_zoom(), gnome_canvas_text_set_zoom_size(), gsl_data_clip_sample(), gsl_data_find_block(), gsl_data_handle_get_state_length(), gsl_data_handle_new_crop(), gsl_data_make_fade_ramp(), gsl_filter_butter_bp(), gsl_filter_butter_bs(), gsl_filter_butter_hp(), gsl_filter_butter_lp(), gsl_filter_fir_approx(), gsl_filter_sine_scan(), gsl_filter_tscheb1_bp(), gsl_filter_tscheb1_bs(), gsl_filter_tscheb1_hp(), gsl_filter_tscheb1_lp(), gsl_filter_tscheb2_bp(), gsl_filter_tscheb2_bs(), gsl_filter_tscheb2_hp(), gsl_filter_tscheb2_lp(), gsl_hfile_close(), gsl_hfile_open(), gsl_hfile_pread(), gsl_hfile_zoffset(), gsl_rfile_close(), gsl_rfile_length(), gsl_rfile_name(), gsl_rfile_position(), gsl_rfile_pread(), gsl_rfile_read(), gsl_rfile_seek_set(), gtk_box_get_nth_child(), gxk_cell_editable_canceled(), gxk_cell_editable_is_focus_handler(), gxk_cell_renderer_popup_get_type(), gxk_dialog_action_multi(), gxk_dialog_add_flags(), gxk_dialog_clear_flags(), gxk_dialog_get_child(), gxk_dialog_remove_actions(), gxk_dialog_set_child(), gxk_dialog_set_default(), gxk_dialog_set_focus(), gxk_dialog_set_title(), gxk_idle_show_widget(), gxk_idle_showraise(), gxk_idle_unrealize_widget(), gxk_label_set_attributes(), gxk_led_set_color(), gxk_menu_attach_as_popup(), gxk_menu_attach_as_popup_with_func(), gxk_menu_attach_as_submenu(), gxk_menu_set_active(), gxk_option_menu_set_menu(), gxk_polygon_set_arcs(), gxk_polygon_set_graph(), gxk_polygon_set_length(), gxk_polygon_set_lines(), gxk_proxy_editable_set_cell_editable(), gxk_radget_add(), gxk_radget_find(), gxk_radget_get_domain(), gxk_radget_parse_text(), gxk_scroll_text_advance(), gxk_scroll_text_append(), gxk_scroll_text_append_file(), gxk_scroll_text_append_file_tsm(), gxk_scroll_text_append_tsm(), gxk_scroll_text_clear(), gxk_scroll_text_create(), gxk_scroll_text_display(), gxk_scroll_text_enter(), gxk_scroll_text_get_text_view(), gxk_scroll_text_pop_indent(), gxk_scroll_text_push_indent(), gxk_scroll_text_rewind(), gxk_scroll_text_set(), gxk_scroll_text_set_index(), gxk_scroll_text_set_tsm(), gxk_signal_handler_exists(), gxk_signal_handler_pending(), gxk_spline_eval(), gxk_spline_free(), gxk_spline_new(), gxk_status_window_pop(), gxk_status_window_push(), gxk_stock_button(), gxk_stock_button_child(), gxk_stock_fallback_pixbuf(), gxk_stock_icon_window(), gxk_stock_register_icon(), gxk_stock_register_icons(), gxk_stock_register_item(), gxk_stock_register_items(), gxk_text_view_cursor_to_end(), gxk_text_view_cursor_to_start(), gxk_text_view_enter_browse_mode(), gxk_text_view_leave_browse_mode(), gxk_toplevel_activate_default(), gxk_toplevel_delete(), gxk_toplevel_hide(), gxk_tree_selection_force_browse(), gxk_tree_selection_select_ipath(), gxk_tree_selection_select_spath(), gxk_tree_selection_unselect_ipath(), gxk_tree_selection_unselect_spath(), gxk_tree_view_add_column(), gxk_tree_view_add_popup_column(), gxk_tree_view_add_text_column(), gxk_tree_view_add_toggle_column(), gxk_tree_view_append_text_columns(), gxk_tree_view_column_set_tip_title(), gxk_tree_view_focus_row(), gxk_tree_view_get_bin_window_pos(), gxk_tree_view_get_row_area(), gxk_tree_view_get_row_from_coord(), gxk_tree_view_get_selected_row(), gxk_tree_view_is_row_selected(), gxk_widget_activate_accel_group(), gxk_widget_add_option(), gxk_widget_attached_hierarchy_changed(), gxk_widget_check_option(), gxk_widget_find_level_ordered(), gxk_widget_force_bg_clear(), gxk_widget_get_options(), gxk_widget_has_ancestor(), gxk_widget_make_insensitive(), gxk_widget_make_sensitive(), gxk_widget_modify_as_title(), gxk_widget_modify_base_as_bg(), gxk_widget_modify_bg_as_active(), gxk_widget_modify_bg_as_base(), gxk_widget_modify_normal_bg_as_base(), gxk_widget_proxy_requisition(), gxk_widget_regulate(), gxk_widget_set_tooltip(), gxk_widget_showraise(), gxk_widget_viewable(), gxk_widget_viewable_changed(), gxk_window_get_menu_accel_group(), gxk_window_process_next(), gxk_window_set_cursor_type(), Bse::icon_from_pixstream(), Bse::init_server_connection(), Bse::TaskRegistry::list(), Bse::ItemImpl::push_property_undo(), Bse::ServerImpl::register_source_module(), sfi_file_crawler_add_search_path(), sfi_file_crawler_add_tests(), sfi_file_crawler_crawl(), sfi_file_crawler_destroy(), sfi_file_crawler_list_files(), sfi_file_crawler_needs_crawl(), sfi_file_crawler_pop(), sfi_file_crawler_set_cwd(), sfi_ring_split(), and sfi_time_from_string_err().

#define assert_return_unreached (   ...)

Return from the current function and issue an assertion warning.

Referenced by bse_object_strdup_debug_handle(), bse_storage_parse_item_link(), gsl_data_handle_new_crop(), and gsl_filter_fir_approx().

#define BSE__HERE__

Shorthand for a string literal containing FILE ":" LINE

#define BSE_ABS (   a)

Yield the absolute value of a.

#define BSE_ALIGN (   size,
  base 
)

Round up size to multiples of base.

#define BSE_ALWAYS_INLINE
#define BSE_ARRAY_SIZE (   array)

Yield the number of C array elements.

#define BSE_ASSERT_RETURN (   cond,
  ... 
)

Return from the current function if cond is unmet and issue an assertion warning.

#define BSE_ASSERT_RETURN_UNREACHED (   ...)

Return from the current function and issue an assertion warning.

#define BSE_CLAMP (   v,
  mi,
  ma 
)

Yield v clamped to [ mi .. ma ].

#define BSE_CLASS_NON_COPYABLE (   ClassName)

Delete copy ctor and assignment operator.

#define BSE_CONST
#define BSE_CONSTRUCTOR
#define BSE_CPP_STRINGIFY (   s)

Turn s into a C string literal.

#define BSE_DECLARE_VLA (   Type,
  var,
  count 
)

Declare a variable length array (clang++ uses std::vector<>).

#define BSE_DEPRECATED
#define BSE_DIR_SEPARATOR

A '/' on Unix-like systems, a '\' on _WIN32.

#define BSE_DIR_SEPARATOR_S

A "/" on Unix-like systems, a "\\" on _WIN32.

#define BSE_IS_ABSPATH (   p)

Checks root directory path component, plus drive letter on _WIN32.

#define BSE_ISLIKELY (   expr)

Compiler hint to optimize for expr evaluating to true.

#define BSE_MALLOC
#define BSE_MAX (   a,
 
)

Yield the greater value of a and b.

#define BSE_MAY_ALIAS
#define BSE_MIN (   a,
 
)

Yield the smaller value of a and b.

#define BSE_NO_INSTRUMENT
#define BSE_NOINLINE
#define BSE_NORETURN
#define BSE_PURE
#define BSE_RETURN_UNLESS (   cond,
  ... 
)

Return silently if cond does not evaluate to true with return value ...

#define BSE_SEARCHPATH_SEPARATOR

A ':' on Unix-like systems, a ';' on _WIN32.

#define BSE_SEARCHPATH_SEPARATOR_S

A ":" on Unix-like systems, a ";" on _WIN32.

#define BSE_SENTINEL
#define BSE_UNIX_PATHS

Undefined on _WIN32 and _WIN64, defined on Unix.

Undefined on Unix-like systems, defined on _WIN32 and _WIN64.

#define BSE_UNLIKELY (   expr)

Compiler hint to optimize for expr evaluating to false.

Referenced by Bse::debug(), Bse::debug_enabled(), and Bse::dump().

#define BSE_UNUSED
#define BSE_USED
#define ISLIKELY (   cond)

Hint to the compiler to optimize for cond == TRUE.

#define return_unless (   cond,
  ... 
)

Return silently if cond does not evaluate to true with return value ...

Referenced by bse_server_script_error().

#define UNLIKELY (   cond)

Hint to the compiler to optimize for cond == FALSE.

Referenced by bse_engine_user_thread_collect().