Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
No need for the OSSP copyright header on the backtrace thing, only for the exceptions
[simgrid.git] / src / xbt / backtrace_dummy.cpp
1 /* backtrace_dummy -- stubs of this module for non-supported archs          */
2
3 /* Copyright (c) 2008-2014. The SimGrid Team.
4  * All rights reserved.                                                     */
5
6 /* This program is free software; you can redistribute it and/or modify it
7  * under the terms of the license (GNU LGPL) which comes with this package. */
8
9 #include "xbt/ex.h"
10 #include "src/xbt_modinter.h"
11
12 /* Module creation/destruction */
13 void xbt_backtrace_preinit(void)
14 {
15 }
16
17 void xbt_backtrace_postexit(void)
18 {
19 }
20
21 /* create a backtrace in the given exception */
22 size_t xbt_backtrace_current(xbt_backtrace_location_t* loc, size_t count)
23 {
24   return 0;
25 }
26
27 int xbt_backtrace_no_malloc(void **array, int size) {
28   return 0;
29 }
30
31 namespace simgrid {
32 namespace xbt {
33
34 std::vector<std::string> resolveBacktrace(
35   xbt_backtrace_location_t* loc, std::size_t count)
36 {
37   return std::vector<std::string>();
38 }
39
40 }
41 }