extern std::unordered_map<std::string, double> location2speedup;
/** @brief Returns the last call location (filename, linenumber). Process-specific. */
+extern "C" {
XBT_PUBLIC(smpi_trace_call_location_t*) smpi_process_get_call_location(void);
XBT_PUBLIC(smpi_trace_call_location_t*) smpi_trace_get_call_location();
+}
#endif
#endif
}
-smpi_trace_call_location_t* smpi_trace_get_call_location() {
- return smpi_process_get_call_location();
-}
-
extern "C" { /** These functions will be called from the user code **/
+ smpi_trace_call_location_t* smpi_trace_get_call_location() {
+ return smpi_process_get_call_location();
+ }
+
void smpi_trace_set_call_location(const char* file, const int line) {
smpi_trace_call_location_t* loc = smpi_process_get_call_location();