Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
move xbt::Backtrace to its own file
authorMartin Quinson <martin.quinson@loria.fr>
Fri, 24 Aug 2018 20:44:51 +0000 (22:44 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Fri, 24 Aug 2018 20:48:56 +0000 (22:48 +0200)
include/xbt/backtrace.h
include/xbt/backtrace.hpp
include/xbt/exception.hpp

index 6367997..761a4b6 100644 (file)
@@ -1,12 +1,11 @@
 /* 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()
index 9c9f9e3..291f792 100644 (file)
@@ -1,5 +1,7 @@
-/* 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.
index e214640..4036734 100644 (file)
 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