[beast: 12/22] BSE: use Rapicorn's assert_unreached()
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 12/22] BSE: use Rapicorn's assert_unreached()
- Date: Thu, 24 Sep 2015 20:09:58 +0000 (UTC)
commit 2e071ce46ca24c059c2dffa043b6067ab53da832
Author: Tim Janik <timj gnu org>
Date: Mon Sep 21 20:25:05 2015 +0200
BSE: use Rapicorn's assert_unreached()
bse/bsedatahandle-resample.cc | 2 +-
bse/bsedatapocket.cc | 2 +-
bse/bseenginemaster.cc | 2 +-
bse/bseenums.cc | 2 +-
bse/bseladspamodule.cc | 4 ++--
bse/bsemidireceiver.cc | 2 +-
bse/bsepart.cc | 2 +-
bse/bseresamplerimpl.hh | 2 +-
bse/bsetype.cc | 4 ++--
bse/gsldatahandle.cc | 2 +-
bse/gsldatautils.hh | 12 ++++++------
bse/gslfilter.cc | 2 +-
bse/gslmagic.cc | 2 +-
bse/gslwaveosc.cc | 2 +-
bse/tests/firhandle.cc | 2 +-
15 files changed, 22 insertions(+), 22 deletions(-)
---
diff --git a/bse/bsedatahandle-resample.cc b/bse/bsedatahandle-resample.cc
index 3f6c09e..16e3e52 100644
--- a/bse/bsedatahandle-resample.cc
+++ b/bse/bsedatahandle-resample.cc
@@ -142,7 +142,7 @@ public:
case BSE_RESAMPLER2_MODE_DOWNSAMPLE: setup->mix_freq /= 2.0;
setup->n_values = (setup->n_values + 1) / 2;
break;
- default: g_assert_not_reached();
+ default: assert_unreached();
}
m_frame_size = 1024 * setup->n_channels;
diff --git a/bse/bsedatapocket.cc b/bse/bsedatapocket.cc
index 97cc9f7..acfd57a 100644
--- a/bse/bsedatapocket.cc
+++ b/bse/bsedatapocket.cc
@@ -512,7 +512,7 @@ bse_data_pocket_do_store_private (BseObject *object,
bse_storage_put_item_link (storage, BSE_ITEM (pocket), entry->items[j].value.v_object);
break;
default:
- g_assert_not_reached ();
+ assert_unreached ();
}
bse_storage_putc (storage, ')');
}
diff --git a/bse/bseenginemaster.cc b/bse/bseenginemaster.cc
index 81b57c3..fb918f6 100644
--- a/bse/bseenginemaster.cc
+++ b/bse/bseenginemaster.cc
@@ -626,7 +626,7 @@ master_process_job (BseJob *job)
master_timer_list = timer;
break;
default:
- g_assert_not_reached ();
+ assert_unreached ();
}
JOB_DEBUG ("done");
}
diff --git a/bse/bseenums.cc b/bse/bseenums.cc
index 05b193c..1da9832 100644
--- a/bse/bseenums.cc
+++ b/bse/bseenums.cc
@@ -34,7 +34,7 @@ bse_type_register_enums (void)
else if (enums[i].parent_type == G_TYPE_FLAGS)
*(enums[i].type_p) = g_flags_register_static (enums[i].name, (GFlagsValue*) enums[i].values);
else
- g_assert_not_reached ();
+ assert_unreached ();
}
}
diff --git a/bse/bseladspamodule.cc b/bse/bseladspamodule.cc
index c5061da..1ff2640 100644
--- a/bse/bseladspamodule.cc
+++ b/bse/bseladspamodule.cc
@@ -242,7 +242,7 @@ ladspa_value_get_float (BseLadspaModule *self,
case SFI_SCAT_REAL:
return sfi_value_get_real (value);
default:
- g_assert_not_reached ();
+ assert_unreached ();
return 0;
}
}
@@ -268,7 +268,7 @@ ladspa_value_set_float (BseLadspaModule *self,
sfi_value_set_real (value, v_float);
break;
default:
- g_assert_not_reached ();
+ assert_unreached ();
}
}
diff --git a/bse/bsemidireceiver.cc b/bse/bsemidireceiver.cc
index 9278f0e..9090f0e 100644
--- a/bse/bsemidireceiver.cc
+++ b/bse/bsemidireceiver.cc
@@ -650,7 +650,7 @@ voice_input_remove_from_table_L (VoiceInput *vinput) /* UserThread */
vinput->queue_state = VSTATE_IDLE;
return;
}
- g_assert_not_reached ();
+ assert_unreached ();
}
}
diff --git a/bse/bsepart.cc b/bse/bsepart.cc
index f6c292c..d717402 100644
--- a/bse/bsepart.cc
+++ b/bse/bsepart.cc
@@ -172,7 +172,7 @@ bse_part_set_property (GObject *object,
bse_part_note_channel_destroy (&self->channels[--self->n_channels]);
break;
case PROP_LAST_TICK:
- g_assert_not_reached ();
+ assert_unreached ();
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (self, param_id, pspec);
diff --git a/bse/bseresamplerimpl.hh b/bse/bseresamplerimpl.hh
index b694356..892c30b 100644
--- a/bse/bseresamplerimpl.hh
+++ b/bse/bseresamplerimpl.hh
@@ -98,7 +98,7 @@ fir_process_4samples_sse (const float *input,
*out2 = out2_v.f[0] + out2_v.f[1] + out2_v.f[2] + out2_v.f[3];
*out3 = out3_v.f[0] + out3_v.f[1] + out3_v.f[2] + out3_v.f[3];
#else
- g_assert_not_reached();
+ assert_unreached();
#endif
}
diff --git a/bse/bsetype.cc b/bse/bsetype.cc
index 067cd90..1e45d4d 100644
--- a/bse/bsetype.cc
+++ b/bse/bsetype.cc
@@ -323,7 +323,7 @@ bse_type_reinit_boxed (BseExportNodeBoxed *bnode)
case BSE_EXPORT_NODE_SEQUENCE:
sfi_boxed_type_set_seq_element (bnode->node.type, bnode->func.get_element());
break;
- default: g_assert_not_reached();
+ default: assert_unreached();
}
}
@@ -340,7 +340,7 @@ bse_type_uninit_boxed (BseExportNodeBoxed *bnode)
case BSE_EXPORT_NODE_SEQUENCE:
sfi_boxed_type_set_seq_element (bnode->node.type, NULL);
break;
- default: g_assert_not_reached();
+ default: assert_unreached();
}
g_type_set_qdata (bnode->node.type, quark_boxed_export_node, NULL);
}
diff --git a/bse/gsldatahandle.cc b/bse/gsldatahandle.cc
index 7cd613a..1e4ed06 100644
--- a/bse/gsldatahandle.cc
+++ b/bse/gsldatahandle.cc
@@ -1599,7 +1599,7 @@ wave_handle_read (GslDataHandle *dhandle,
break;
default:
l = -1;
- g_assert_not_reached ();
+ assert_unreached ();
}
return l;
diff --git a/bse/gsldatautils.hh b/bse/gsldatautils.hh
index 6462d8a..af0691a 100644
--- a/bse/gsldatautils.hh
+++ b/bse/gsldatautils.hh
@@ -373,7 +373,7 @@ gsl_conv_from_float (GslWaveFormatType format,
while (u32src < u32bound);
return n_values * 4;
default:
- g_assert_not_reached ();
+ assert_unreached ();
return 0;
}
}
@@ -604,7 +604,7 @@ gsl_conv_from_float_clip (GslWaveFormatType format,
while (u32src < u32bound);
return n_values << 2;
default:
- g_assert_not_reached ();
+ assert_unreached ();
return 0;
}
}
@@ -823,7 +823,7 @@ gsl_conv_to_float (GslWaveFormatType format,
while (u32dest < u32bound);
break;
default:
- g_assert_not_reached ();
+ assert_unreached ();
}
}
@@ -1030,7 +1030,7 @@ gsl_conv_from_double (GslWaveFormatType format,
while (u32src < u32bound);
return n_values << 2;
default:
- g_assert_not_reached ();
+ assert_unreached ();
return 0;
}
}
@@ -1261,7 +1261,7 @@ gsl_conv_from_double_clip (GslWaveFormatType format,
while (u32src < u32bound);
return n_values << 2;
default:
- g_assert_not_reached ();
+ assert_unreached ();
return 0;
}
}
@@ -1430,7 +1430,7 @@ gsl_conv_to_double (GslWaveFormatType format,
while (u32dest < u32bound);
break;
default:
- g_assert_not_reached ();
+ assert_unreached ();
}
}
diff --git a/bse/gslfilter.cc b/bse/gslfilter.cc
index 6808687..95a5bdc 100644
--- a/bse/gslfilter.cc
+++ b/bse/gslfilter.cc
@@ -1167,7 +1167,7 @@ gsl_biquad_filter_config (GslBiquadFilter *f,
f->yc1 = -f->yc1;
break;
default:
- g_assert_not_reached ();
+ assert_unreached ();
}
c->dirty = FALSE;
}
diff --git a/bse/gslmagic.cc b/bse/gslmagic.cc
index 323768c..12bd56b 100644
--- a/bse/gslmagic.cc
+++ b/bse/gslmagic.cc
@@ -611,7 +611,7 @@ magic_read_data (BFile *bfile, GslRealMagic *magic, MagicData *data)
data->v_int32 = (signed) uint8;
}
else
- g_assert_not_reached ();
+ assert_unreached ();
}
return TRUE;
diff --git a/bse/gslwaveosc.cc b/bse/gslwaveosc.cc
index 1381914..7413154 100644
--- a/bse/gslwaveosc.cc
+++ b/bse/gslwaveosc.cc
@@ -189,7 +189,7 @@ gsl_wave_osc_process (GslWaveOscData *wosc,
wosc_process_sfme (wosc, n_values, freq_in, mod_in, sync_in, mono_out);
break;
default:
- g_assert_not_reached ();
+ assert_unreached ();
}
if (wosc->y[0] != 0.0 &&
!(fabs (wosc->y[0]) > BSE_SIGNAL_EPSILON && fabs (wosc->y[0]) < BSE_SIGNAL_KAPPA))
diff --git a/bse/tests/firhandle.cc b/bse/tests/firhandle.cc
index 783a2c1..0cbdcf7 100644
--- a/bse/tests/firhandle.cc
+++ b/bse/tests/firhandle.cc
@@ -115,7 +115,7 @@ handle_name (FirHandleType type)
{
case FIR_HIGHPASS: return "Highpass";
case FIR_LOWPASS: return "Lowpass";
- default: g_assert_not_reached();
+ default: assert_unreached();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]