/** @{ @ingroup SURF_c_bindings */
-/** @brief Get the name of a surf model (dont rely on exact value)
- *
- * This is implemented using typeid(), so it may change with the compiler
- */
-XBT_PUBLIC(const char *) surf_model_name(surf_model_t model);
-
/**
* @brief Pop an action from the done actions set
*
static_cast<AsCluster*>(as)->p_backbone = static_cast<Link*>(backbone);
}
-const char *surf_model_name(surf_model_t model){
- return typeid(model).name();
-}
-
surf_action_t surf_model_extract_done_action_set(surf_model_t model){
if (model->getDoneActionSet()->empty())
return NULL;
XBT_DEBUG("Next Event : %g", now);
xbt_dynar_foreach(model_list, iter, model) {
- XBT_DEBUG("\t %s actions", surf_model_name(model));
+ XBT_DEBUG("\t Actions");
while ((action = surf_model_extract_failed_action_set((surf_model_t)model))) {
XBT_DEBUG("\t * Failed : %p", action);
surf_action_unref(action);
surf_action_unref(action);
}
if (surf_model_running_action_set_size((surf_model_t)model)) {
- XBT_DEBUG("running %s", surf_model_name(model));
+ XBT_DEBUG("running that model");
running = 1;
}
}