A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove extern "C" from cpp files.
[simgrid.git]
/
src
/
simgrid
/
host.cpp
diff --git
a/src/simgrid/host.cpp
b/src/simgrid/host.cpp
index
0ee923f
..
346a1c4
100644
(file)
--- a/
src/simgrid/host.cpp
+++ b/
src/simgrid/host.cpp
@@
-19,8
+19,6
@@
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(sg_host, sd, "Logging specific to sg_hosts");
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(sg_host, sd, "Logging specific to sg_hosts");
-extern "C" {
-
size_t sg_host_count()
{
return simgrid::s4u::Engine::getInstance()->getHostCount();
size_t sg_host_count()
{
return simgrid::s4u::Engine::getInstance()->getHostCount();
@@
-338,5
+336,3
@@
sg_host_t sg_host_self()
smx_actor_t process = SIMIX_process_self();
return (process == nullptr) ? nullptr : process->host;
}
smx_actor_t process = SIMIX_process_self();
return (process == nullptr) ? nullptr : process->host;
}
-
-} // extern "C"