#ifndef UTILS_HPP #define UTILS_HPP #include #include #include #include #include #define PTR_ADD(ptr, offset) ((void*)((char*)(ptr) + (offset))) namespace Utils { void* get_so_base_address(const std::string& name); lua_State* get_lua_state(); namespace Lua { std::string get_type_name(sol::type t); std::string get_type_name(sol::object& o); void print_table_fields_type(sol::table& t); void print_traceback(sol::this_state& L); } } #endif //UTILS_HPP