Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90897999
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
Tue, Nov 5, 18:50
Size
1 KB
Mime Type
text/x-c
Expires
Thu, Nov 7, 18:50 (2 d)
Engine
blob
Format
Raw Data
Handle
17222262
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 {
/* -------------------------------------------------------------------------- */
void register_error(py::module & mod) {
mod.def("setDebugLevel", &debug::setDebugLevel);
mod.def("getDebugLevel", &debug::getDebugLevel);
mod.def("printBacktrace", [](bool flag) { debug::debugger.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