[beast: 20/22] TOOLS: use Rapicorn's assert() instead of g_assert()
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 20/22] TOOLS: use Rapicorn's assert() instead of g_assert()
- Date: Thu, 24 Sep 2015 20:10:38 +0000 (UTC)
commit b5be4368b6ae74ce43d3b742de6fc5d7dff3faf9
Author: Tim Janik <timj gnu org>
Date: Mon Sep 21 20:34:24 2015 +0200
TOOLS: use Rapicorn's assert() instead of g_assert()
shell/bsescminterp.cc | 4 ++--
tests/testresampler.cc | 2 +-
tools/bsewavetool.cc | 6 +++---
3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/shell/bsescminterp.cc b/shell/bsescminterp.cc
index d2e1ad4..90b1157 100644
--- a/shell/bsescminterp.cc
+++ b/shell/bsescminterp.cc
@@ -191,12 +191,12 @@ void
bse_scm_destroy_gc_plateau (SCM s_gcplateau)
{
GcPlateau *gp;
- g_assert (SCM_IS_GLUE_GC_PLATEAU (s_gcplateau));
+ assert (SCM_IS_GLUE_GC_PLATEAU (s_gcplateau));
gp = SCM_GET_GLUE_GC_PLATEAU (s_gcplateau);
if (gp->active_plateau)
{
gp->active_plateau = FALSE;
- g_assert (scm_glue_gc_plateau_blocker > 0);
+ assert (scm_glue_gc_plateau_blocker > 0);
scm_glue_gc_plateau_blocker--;
if (scm_glue_gc_plateau_blocker == 0)
sfi_glue_gc_run ();
diff --git a/tests/testresampler.cc b/tests/testresampler.cc
index 58b74c4..b717006 100644
--- a/tests/testresampler.cc
+++ b/tests/testresampler.cc
@@ -518,7 +518,7 @@ perform_test()
printf ("# max difference between correct and computed output: %f = %f dB\n", max_diff,
max_diff_db);
if (options.max_threshold_db < 0)
printf ("# (threshold given by user: %f dB)\n",
options.max_threshold_db);
- g_assert (max_diff_db < options.max_threshold_db);
+ assert (max_diff_db < options.max_threshold_db);
}
else if (TEST == TEST_ERROR_SPECTRUM)
{
diff --git a/tools/bsewavetool.cc b/tools/bsewavetool.cc
index 564bfa2..47cc678 100644
--- a/tools/bsewavetool.cc
+++ b/tools/bsewavetool.cc
@@ -367,7 +367,7 @@ public:
key_string += 'a' + digit - 10 - 26;
key_uint /= 62;
}
- g_assert (key_uint == 0);
+ assert (key_uint == 0);
return key_string;
}
@@ -2239,8 +2239,8 @@ public:
chunk_data.iterators.push_back (it);
}
- g_assert (chunk_data.sizes.size() > 0);
- g_assert (chunk_data.sizes.size() == chunk_data.errors.size());
+ assert (chunk_data.sizes.size() > 0);
+ assert (chunk_data.sizes.size() == chunk_data.errors.size());
ChunkSet chunk_set;
init_empty_set (chunk_data, chunk_set);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]