From: Martin Quinson Date: Fri, 24 Aug 2018 20:44:51 +0000 (+0200) Subject: move xbt::Backtrace to its own file X-Git-Tag: v3_21~180 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/c69e0052a5b60b3a852fa388d4c084f2c5a0cfff?ds=sidebyside move xbt::Backtrace to its own file --- diff --git a/include/xbt/backtrace.h b/include/xbt/backtrace.h index 6367997f40..761a4b6829 100644 --- a/include/xbt/backtrace.h +++ b/include/xbt/backtrace.h @@ -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 -#endif - #include SG_BEGIN_DECL() diff --git a/include/xbt/backtrace.hpp b/include/xbt/backtrace.hpp index 9c9f9e3882..291f7925a2 100644 --- a/include/xbt/backtrace.hpp +++ b/include/xbt/backtrace.hpp @@ -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 @@ -10,12 +12,20 @@ #include #include -#include #include 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 Backtrace; + /** Try to demangle a C++ name * * Return the origin string if this fails. diff --git a/include/xbt/exception.hpp b/include/xbt/exception.hpp index e214640759..4036734664 100644 --- a/include/xbt/exception.hpp +++ b/include/xbt/exception.hpp @@ -24,15 +24,6 @@ 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 Backtrace; - /** The location of where an exception has been thrown * * This is a tuple (__FILE__, __LINE__, __func__) and can be created with