/* Copyright (c) 2005-2018. The SimGrid Team. All rights reserved. */
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
#ifndef XBT_BACKTRACE_H
#define XBT_BACKTRACE_H
-#ifdef __cplusplus
-#include <cstddef>
-#endif
-
#include <xbt/base.h>
SG_BEGIN_DECL()
-/* Copyright (c) 2005-2018. The SimGrid Team.
- * All rights reserved. */
+/* Copyright (c) 2005-2018. The SimGrid Team. All rights reserved. */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
#ifndef SIMGRIX_XBT_BACKTRACE_HPP
#define SIMGRIX_XBT_BACKTRACE_HPP
#include <memory>
#include <vector>
-#include <xbt/base.h>
#include <xbt/backtrace.h>
namespace simgrid {
namespace xbt {
+/** A backtrace
+ *
+ * This is used (among other things) in exceptions to store the associated
+ * backtrace.
+ *
+ * @ingroup XBT_ex
+ */
+typedef std::vector<xbt_backtrace_location_t> Backtrace;
+
/** Try to demangle a C++ name
*
* Return the origin string if this fails.
namespace simgrid {
namespace xbt {
-/** A backtrace
- *
- * This is used (among other things) in exceptions to store the associated
- * backtrace.
- *
- * @ingroup XBT_ex
- */
-typedef std::vector<xbt_backtrace_location_t> Backtrace;
-
/** The location of where an exception has been thrown
*
* This is a tuple (__FILE__, __LINE__, __func__) and can be created with