1 /* virtu - virtualization layer for the logging to know about the actors */
3 /* Copyright (c) 2007-2023. The SimGrid Team. All rights reserved. */
5 /* This program is free software; you can redistribute it and/or modify it
6 * under the terms of the license (GNU LGPL) which comes with this package. */
11 #include <simgrid/actor.h>
14 // avoid deprecation warning on include (remove entire file with XBT_ATTRIB_DEPRECATED_v337)
15 #ifndef XBT_VIRTU_H_NO_DEPRECATED_WARNING
16 #warning xbt/virtu.h is deprecated and will be removed in v3.37.
21 XBT_ATTRIB_DEPRECATED_v337("Please use sg_actor_self_get_name()") static const char* xbt_procname(void)
23 return sg_actor_self_get_name();
26 XBT_ATTRIB_DEPRECATED_v337("Please use sg_actor_self_get_pid()") static int xbt_getpid(void)
28 return sg_actor_self_get_pid();
33 #endif /* XBT_VIRTU_H */