-/* Copyright (c) 2010-2018. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2010-2019. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
if (not TRACE_is_enabled() || not TRACE_needs_platform())
return;
- if (not mark_type)
- THROWF (tracing_error, 1, "mark_type is nullptr");
+ xbt_assert(mark_type, "mark_type is nullptr");
//check if mark_type is already declared
if (declared_marks.find(mark_type) != declared_marks.end()) {
if (not TRACE_is_enabled() || not TRACE_needs_platform())
return;
- if (not mark_type)
- THROWF (tracing_error, 1, "mark_type is nullptr");
- if (not mark_value)
- THROWF (tracing_error, 1, "mark_value is nullptr");
+ xbt_assert(mark_type, "mark_type is nullptr");
+ xbt_assert(mark_value, "mark_value is nullptr");
simgrid::instr::EventType* type =
static_cast<simgrid::instr::EventType*>(simgrid::instr::Container::get_root()->type_->by_name(mark_type));
if (not TRACE_is_enabled() || not TRACE_needs_platform())
return;
- if (not mark_type)
- THROWF (tracing_error, 1, "mark_type is nullptr");
- if (not mark_value)
- THROWF (tracing_error, 1, "mark_value is nullptr");
+ xbt_assert(mark_type, "mark_type is nullptr");
+ xbt_assert(mark_value, "mark_value is nullptr");
//check if mark_type is already declared
simgrid::instr::EventType* type =
break;
default:
THROW_IMPOSSIBLE;
- break;
}
}
}