Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Revert "remove a few smells in instrumentation"
[simgrid.git] / src / instr / instr_smpi.h
1 #ifndef INSTR_SMPI_H_
2 #define INSTR_SMPI_H_ 
3 #ifdef __cplusplus
4 #include <string>
5 extern "C" {
6 #endif
7
8 typedef struct smpi_trace_call_location {
9   const char* filename;
10   int linenumber;
11
12   const char* previous_filename;
13   int previous_linenumber;
14
15 #ifdef __cplusplus
16   std::string get_composed_key() {
17     return std::string(previous_filename) + ':' + std::to_string(previous_linenumber) + ':' + filename + ':' + std::to_string(linenumber);
18   }
19 #endif
20
21 } smpi_trace_call_location_t;
22
23 #ifdef __cplusplus
24 }
25 #endif
26 #endif