14#if defined(OS_MINGW) || defined(OS_WIN)
18#if defined(OS_LINUX) || defined(OS_MACOS)
65#if defined(OS_MINGW) || defined(OS_WIN)
69#if defined(OS_LINUX) || defined(OS_MACOS)
80#if defined(OS_MINGW) || defined(OS_WIN)
84#if defined(OS_LINUX) || defined(OS_MACOS)
89 return "wasm_user_name";
131#if defined(OS_MINGW) || defined(OS_WIN)
135#if defined(OS_MACOS) || defined(OS_LINUX)
149 for (
int i= 0; i <
N (
fd_out); i++)
156#if defined(OS_LINUX) || defined(OS_MACOS)
160#if defined(OS_WIN) || defined(OS_WASM)
177 r <<
"Backtrace of C++ stack:\n";
187 r <<
" <empty, possibly corrupt>\n";
200 for (
int i= 0; i <
addrlen; i++) {
int N(array< T > a)
Get the length of the array.
array< T > append(T a, array< T > b)
Append an element to the beginning of an array.
#define STACK_NEW_ARRAY(name, T, size)
#define STACK_DELETE_ARRAY(name)
The list class represents a linked list.
void tm_delete_array(C *Ptr)
string win_get_username()
string get_stacktrace(unsigned int max_frames)
string as_string(int16_t i)
array< string > evaluate_system(array< string > arg, array< int > fd_in, array< string > in, array< int > fd_out)
void set_env(string var, string with)
string get_env(string var)
int unix_system(array< string > arg, array< int > fd_in, array< string > str_in, array< int > fd_out, array< string * > str_out)
string unix_get_username()