1 #ifndef __UTIL_H_DEFINED__ 2 #define __UTIL_H_DEFINED__ 4 #include <boost/multiprecision/cpp_int.hpp> 5 #include <boost/python.hpp> 9 #define ILA_ASSERT(b, msg) ila_assert(b, msg, __FILE__, __LINE__) 12 void ila_assert(
bool b,
const char* msg,
const char* file,
int line);
13 void ila_assert(
bool b,
const std::string& msg,
const char* file,
int line);
17 std::string
to_string(
const py::object& l);
21 py::object
to_pyint(
const std::string& s);
32 #endif // __UTIL_H_DEFINED__
boost::multiprecision::cpp_int mp_int_t
Definition: common.hpp:9
bool is_py_int_or_long(const py::object &l)
bool is_py_int(const py::object &l)
std::string to_string(const py::object &l)
const int NUM_HASHTABLE_BUCKETS
Definition: util.hpp:28
mp_int_t to_cpp_int(const py::object &l)
py::object to_pyint(const mp_int_t &i)
Definition: abstraction.hpp:21
void ila_assert(bool b, const char *msg, const char *file, int line)
void set_logging_level(int level)
const int NUM_HASHTABLE_BUCKETS_SMALL
Definition: util.hpp:29