Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97988372
py_akantu.cc
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Jan 8, 08:07
Size
1 KB
Mime Type
text/x-c
Expires
Fri, Jan 10, 08:07 (2 d)
Engine
blob
Format
Raw Data
Handle
23372588
Attached To
rAKA akantu
py_akantu.cc
View Options
/* -------------------------------------------------------------------------- */
#include "py_aka_common.hh"
/* -------------------------------------------------------------------------- */
#include <aka_error.hh>
/* -------------------------------------------------------------------------- */
#include <pybind11/pybind11.h>
/* -------------------------------------------------------------------------- */
namespace
py
=
pybind11
;
PYBIND11_MODULE
(
py11_akantu
,
mod
)
{
mod
.
doc
()
=
"Akantu python interface"
;
static
py
::
exception
<
akantu
::
debug
::
Exception
>
akantu_exception
(
mod
,
"Exception"
);
py
::
register_exception_translator
([](
std
::
exception_ptr
p
)
{
try
{
if
(
p
)
std
::
rethrow_exception
(
p
);
}
catch
(
akantu
::
debug
::
Exception
&
e
)
{
if
(
akantu
::
debug
::
debugger
.
printBacktrace
())
akantu
::
debug
::
printBacktrace
(
15
);
akantu_exception
(
e
.
info
().
c_str
());
}
});
akantu
::
register_all
(
mod
);
}
// Module akantu
Event Timeline
Log In to Comment