Phasor 3.1.1
Stack VM based Programming Language
Loading...
Searching...
No Matches
nativeerror.h
Go to the documentation of this file.
1#include <print>
2#include <iostream>
3
4#ifndef SANDBOXED
5 #ifdef _WIN32
6 #include <Windows.h>
7 #define error(msg) \
8 MessageBoxA(NULL, std::string(msg).c_str(), "Phasor VM Runtime Error", MB_OK | MB_ICONERROR); \
9 std::println(std::cerr, "Error: {}", msg)
10 #else
11 #define error(msg) std::println(std::cerr, "Error: {}", msg)
12 #endif
13#else
14 #define error(msg) std::println(std::cerr, "Error: {}", msg)
15#endif