Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90787596
py_aka_error.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
Mon, Nov 4, 18:36
Size
1 KB
Mime Type
text/x-c
Expires
Wed, Nov 6, 18:36 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
21299686
Attached To
rAKA akantu
py_aka_error.cc
View Options
/* -------------------------------------------------------------------------- */
#include "py_aka_error.hh"
/* -------------------------------------------------------------------------- */
#include <aka_error.hh>
/* -------------------------------------------------------------------------- */
#include <pybind11/operators.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
/* -------------------------------------------------------------------------- */
namespace py = pybind11;
/* -------------------------------------------------------------------------- */
namespace akantu {
/* -------------------------------------------------------------------------- */
[[gnu::visibility("default")]] void register_error(py::module & mod) {
mod.def("setDebugLevel", &debug::setDebugLevel);
mod.def("getDebugLevel", &debug::getDebugLevel);
mod.def("printBacktrace", [](bool flag) { debug::printBacktrace(flag); });
py::enum_<DebugLevel>(mod, "DebugLevel")
.value("dblError", dblError)
.value("dblException", dblException)
.value("dblCritical", dblCritical)
.value("dblMajor", dblMajor)
.value("dblWarning", dblWarning)
.value("dblInfo", dblInfo)
.value("dblTrace", dblTrace)
.value("dblAccessory", dblAccessory)
.value("dblDebug", dblDebug)
.value("dblDump", dblDump)
.value("dblTest", dblTest)
.export_values();
}
} // namespace akantu
Event Timeline
Log In to Comment