Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Sonar: move extern "C" declarations out of namespaces.
[simgrid.git] / src / mc / mc_snapshot.cpp
index 13586a6..69a2a5b 100644 (file)
@@ -156,6 +156,8 @@ int MC_snapshot_memcmp(
   return MC_snapshot_region_memcmp(addr1, region1, addr2, region2, size);
 }
 
+} // extern "C"
+
 namespace simgrid {
 namespace mc {
 
@@ -192,8 +194,6 @@ const void* Snapshot::read_bytes(void* buffer, std::size_t size,
 }
 }
 
-}
-
 #ifdef SIMGRID_TEST
 
 #include <cstdlib>