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)
17
extern
"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
21
int
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
}
main
int main()
Definition
LSP_main.cpp:130
Value.hpp
exec
int exec(void *state, const unsigned char embeddedBytecode[], size_t embeddedBytecodeSize, const char *moduleName, int argc, const char *argv[])
src
Executable
Help
phasor_help_main.cpp
Generated by
1.16.1