rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=4c1efbd1d9d62c60dd12b1265dadddd4ae86e6bd

commit 4c1efbd1d9d62c60dd12b1265dadddd4ae86e6bd
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Tue Dec 1 12:02:24 2015 +0200

    diff: add debug assertions
    
    they should be removed after our side becomes stable
---
 src/bin/editor/diff.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/bin/editor/diff.c b/src/bin/editor/diff.c
index ce2e155..f2c7383 100644
--- a/src/bin/editor/diff.c
+++ b/src/bin/editor/diff.c
@@ -163,7 +163,9 @@ diff_undo(Evas_Object *obj, Diff *diff)
    assert(obj != NULL);
    assert(diff != NULL);
 
-   return _apply(obj, &diff->undo);
+   Eina_Bool res = _apply(obj, &diff->undo);
+   assert(res);
+   return res;
 }
 
 Eina_Bool
@@ -172,7 +174,9 @@ diff_redo(Evas_Object *obj, Diff *diff)
    assert(obj != NULL);
    assert(diff != NULL);
 
-   return _apply(obj, &diff->redo);
+   Eina_Bool res = _apply(obj, &diff->redo);
+   assert(res);
+   return res;
 }
 
 void

-- 


Reply via email to