PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
log.hpp
Go to the documentation of this file.
1#pragma once
2#include <iostream>
3#include <string>
4#include <stdexcept>
5
6namespace pineforge {
7
8inline void pine_log_info(const std::string& msg) { std::cerr << "[INFO] " << msg << "\n"; }
9inline void pine_log_warning(const std::string& msg) { std::cerr << "[WARN] " << msg << "\n"; }
10inline void pine_log_error(const std::string& msg) { std::cerr << "[ERROR] " << msg << "\n"; }
11inline void pine_runtime_error(const std::string& msg) { throw std::runtime_error(msg); }
12
13} // namespace pineforge
void pine_log_warning(const std::string &msg)
Definition log.hpp:9
void pine_log_error(const std::string &msg)
Definition log.hpp:10
void pine_log_info(const std::string &msg)
Definition log.hpp:8
void pine_runtime_error(const std::string &msg)
Definition log.hpp:11