Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Put XBT_WARN when try to use channel and not alias system.
[simgrid.git] / src / msg / msg_global.c
index b7d7b6e..2a91cb0 100644 (file)
@@ -112,6 +112,7 @@ void MSG_global_init(int *argc, char **argv)
  */
 MSG_error_t MSG_set_channel_number(int number)
 {
+  XBT_WARN("DEPRECATED! Now use alias");
   xbt_assert((msg_global)
               && (msg_global->max_channel == 0),
               "Channel number already set!");
@@ -130,6 +131,7 @@ MSG_error_t MSG_set_channel_number(int number)
  */
 int MSG_get_channel_number(void)
 {
+  XBT_WARN("DEPRECATED! Now use alias");
   xbt_assert((msg_global)
               && (msg_global->max_channel != 0),
               "Channel number not set yet!");