#endif
#if TRACE_CALL_LOCATION
-#include "src/instr/instr_smpi.h"
-#include "smpi_extended_traces.h"
+//#include "src/instr/instr_smpi.h"
+#include <smpi/smpi_extended_traces.h>
#endif
#endif
} smpi_trace_call_location_t;
-smpi_trace_call_location_t* smpi_trace_get_call_location();
-
#ifdef __cplusplus
}
#endif
#include "src/instr/instr_private.h"
#include "src/instr/instr_smpi.h"
+#include "src/smpi/private.hpp"
#include "xbt/virtu.h" /* sg_cmdline */
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(instr_trace, instr, "tracing event system");
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "private.h"
-#include "private.hpp"
#include <ctype.h>
#include <wchar.h>
#include <stdarg.h>
* \brief Returns the last call location (filename, linenumber). Process-specific.
*/
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
}
-extern "C" {
-
- smpi_trace_call_location_t* smpi_trace_get_call_location() {
- return smpi_process_get_call_location();
- }
+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 **/
void smpi_trace_set_call_location(const char* file, const int line) {
smpi_trace_call_location_t* loc = smpi_process_get_call_location();