Commit 8146ced2 authored by Jonathan Jenkins's avatar Jonathan Jenkins

simplify deprecation macro

parent d5d91fd3
...@@ -22,9 +22,9 @@ ...@@ -22,9 +22,9 @@
// simple deprecation attribute hacking // simple deprecation attribute hacking
#if defined(__GNUC__) || defined(__GNUG__) || defined(__clang__) #if defined(__GNUC__) || defined(__GNUG__) || defined(__clang__)
#define DEPRECATED(_msg) __attribute__((deprecated)) #define DEPRECATED __attribute__((deprecated))
#else #else
#define DEPRECATED(_msg) #define DEPRECATED
#endif #endif
/* HACK: there is currently no scheduling fidelity across multiple /* HACK: there is currently no scheduling fidelity across multiple
...@@ -269,7 +269,7 @@ int model_net_get_msg_sz(int net_id); ...@@ -269,7 +269,7 @@ int model_net_get_msg_sz(int net_id);
/* NOTE: we may end up needing additoinal arguments here to track state for /* NOTE: we may end up needing additoinal arguments here to track state for
* reverse computation; add as needed * reverse computation; add as needed
*/ */
DEPRECATED("use model_net_event_rc2 instead, invalid RNG rollback can occur otherwise") DEPRECATED
void model_net_event_rc( void model_net_event_rc(
int net_id, int net_id,
tw_lp *sender, tw_lp *sender,
...@@ -325,7 +325,7 @@ model_net_event_return model_net_pull_event_mctx( ...@@ -325,7 +325,7 @@ model_net_event_return model_net_pull_event_mctx(
void const *self_event, void const *self_event,
tw_lp *sender); tw_lp *sender);
DEPRECATED("use model_net_event_rc2 instead, invalid RNG rollback can occur otherwise") DEPRECATED
void model_net_pull_event_rc( void model_net_pull_event_rc(
int net_id, int net_id,
tw_lp *sender); tw_lp *sender);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment