Skip to content

Instantly share code, notes, and snippets.

View wiktor-k's full-sized avatar
🇺🇦
Support Ukraine!

Wiktor Kwapisiewicz wiktor-k

🇺🇦
Support Ukraine!
View GitHub Profile
@wiktor-k
wiktor-k / Crypto.cpp
Created February 22, 2020 21:39 — forked from anidean/Crypto.cpp
C++ Wrapper functions for sequoia
// Crypto.hpp
//////////////////////////////
#include "spdlog/spdlog.h"
#include "spdlog/sinks/stdout_color_sinks.h"
#include "spdlog/sinks/rotating_file_sink.h"
#define SPDLOG_STR_H(x) #x
#define SPDLOG_STR_HELPER(x) SPDLOG_STR_H(x)
#define DEBUG(...) spdlog::log(spdlog::level::debug, "[" + fmt::format(__FILE__) + "::" + SPDLOG_STR_HELPER(__LINE__) + "::" + std::string(__func__) + "] " + fmt::format(__VA_ARGS__))
#define INFO(...) spdlog::log(spdlog::level::info, "[" + fmt::format(__FILE__) + "::" + SPDLOG_STR_HELPER(__LINE__) + "::" + std::string(__func__) + "] " + fmt::format(__VA_ARGS__))