* name already exists, it is masked by the one given here, and will be
* seeable again only after a pop to remove the value this push adds.
*/
-xbt_error_t
+void
gras_cbps_v_push(gras_cbps_t ps,
const char *name,
void *data,
DEBUG4("Push %s (%p @%p) into frame %p",varname,(void*)varname,(void*)&varname,(void*)frame);
xbt_dynar_push(frame, &varname);
xbt_dynar_push(ps->frames, &frame);
- return no_error;
}
/** \brief Retrieve an element from the PS, and remove it from the PS.
*
- * If it's not
- * present in the current block, it will fail (with abort) and not search
- * in upper blocks since this denotes a programmation error.
+ * If it's not present in the current block, it will fail (throwing not_found)
+ * and not search in upper blocks since this denotes a programmation error.
*/
-xbt_error_t
+void
gras_cbps_v_pop (gras_cbps_t ps,
const char *name,
gras_datadesc_type_t *ddt,
RETHROW;
xbt_ex_free(e);
- THROW1(mismatch_error,1,"Asked to pop the non-existant %s", name);
+ THROW1(not_found_error,1,"Asked to pop the non-existant %s", name);
}
xbt_dynar_pop(varstack, &var);
xbt_dynar_push(ps->frames, &frame);
*res = data;
- return no_error;
}
/** \brief Change the value of an element in the PS.