Phasor 3.3.0
Stack VM based Programming Language
Loading...
Searching...
No Matches
phasor_help_main.cpp
Go to the documentation of this file.
1#include <phasor_help.hpp>
2
3#include <cstdint>
4#include <cstdio>
5#include <cstdlib>
6#include <iostream>
7#include <fstream>
8#include <filesystem>
9#include <string>
10#include <vector>
11
12#ifndef CMAKE_PCH
13#include <Value.hpp>
14#endif
15
16// Forward declare native runtime entry points (linked in from the runtime library)
17extern "C" int exec(void *state, const unsigned char embeddedBytecode[], size_t embeddedBytecodeSize,
18 const char *moduleName, int argc, const char *argv[]);
19
20// Main entry point
21int main(int argc, char *argv[])
22{
23 try
24 {
25 return exec(nullptr, embeddedBytecode, embeddedBytecodeSize, moduleName.c_str(), argc, (const char **)argv);
26 }
27 catch (const std::exception &e)
28 {
29 std::cerr << "Runtime Error: " << e.what() << "\n";
30 }
31 return -1;
32}
int main()
Definition LSP_main.cpp:130
int exec(void *state, const unsigned char embeddedBytecode[], size_t embeddedBytecodeSize, const char *moduleName, int argc, const char *argv[])