A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[xbt] Move throwpoint out of xbt_ex in WithContextException
[simgrid.git]
/
src
/
xbt
/
ex.cpp
diff --git
a/src/xbt/ex.cpp
b/src/xbt/ex.cpp
index
0c11397
..
516e0b6
100644
(file)
--- a/
src/xbt/ex.cpp
+++ b/
src/xbt/ex.cpp
@@
-92,13
+92,10
@@
void xbt_throw(
char* message, xbt_errcat_t errcat, int value,
const char* file, int line, const char* func)
{
char* message, xbt_errcat_t errcat, int value,
const char* file, int line, const char* func)
{
- xbt_ex e(message);
+ xbt_ex e(
simgrid::xbt::ThrowPoint(file, line, func),
message);
free(message);
e.category = errcat;
e.value = value;
free(message);
e.category = errcat;
e.value = value;
- e.file = file;
- e.line = line;
- e.func = func;
throw e;
}
throw e;
}