Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
4125fb7ac05a9ff9c12f42597672b0443e4253a0
[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 #include "src/xbt/ex_interface.h"
12
13 /* Module creation/destruction */
14 void xbt_backtrace_preinit(void)
15 {
16 }
17
18 void xbt_backtrace_postexit(void)
19 {
20 }
21
22 /* create a backtrace in the given exception */
23 size_t xbt_backtrace_current(xbt_backtrace_location_t* loc, size_t count)
24 {
25   return 0;
26 }
27
28 int xbt_backtrace_no_malloc(void **array, int size) {
29   return 0;
30 }
31
32 namespace simgrid {
33 namespace xbt {
34
35 std::vector<std::string> resolveBacktrace(
36   xbt_backtrace_location_t* loc, std::size_t count)
37 {
38   return std::vector<std::string>();
39 }
40
41 }
42 }