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