summaryrefslogtreecommitdiffhomepage
path: root/mixlib/mix_vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'mixlib/mix_vm.c')
-rw-r--r--mixlib/mix_vm.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/mixlib/mix_vm.c b/mixlib/mix_vm.c
index 8929527..0e9f61b 100644
--- a/mixlib/mix_vm.c
+++ b/mixlib/mix_vm.c
@@ -601,22 +601,21 @@ mix_vm_clear_all_breakpoints (mix_vm_t *vm)
}
-gint
+gboolean
mix_vm_set_conditional_breakpoint (mix_vm_t *vm, mix_predicate_t *pred)
{
- g_return_val_if_fail (vm != NULL, MIX_VM_BP_ERROR);
- g_return_val_if_fail (pred != NULL, MIX_VM_BP_ERROR);
+ g_return_val_if_fail (vm != NULL, FALSE);
+ g_return_val_if_fail (pred != NULL, FALSE);
mix_predicate_list_add (get_pred_list_ (vm), pred);
- return MIX_VM_BP_OK;
+ return TRUE;
}
-gint
+gboolean
mix_vm_clear_conditional_breakpoint (mix_vm_t *vm, mix_predicate_t *pred)
{
- g_return_val_if_fail (vm != NULL, MIX_VM_BP_ERROR);
- g_return_val_if_fail (pred != NULL, MIX_VM_BP_ERROR);
- mix_predicate_list_remove (get_pred_list_ (vm), pred);
- return MIX_VM_BP_OK;
+ g_return_val_if_fail (vm != NULL, FALSE);
+ g_return_val_if_fail (pred != NULL, FALSE);
+ return mix_predicate_list_remove (get_pred_list_ (vm), pred);
}
const gchar *