Files
Nasal-Interpreter/src/natives/subprocess.h
T
2024-06-13 00:43:17 +08:00

32 lines
530 B
C++

#pragma once
#include "nasal.h"
#include "nasal_gc.h"
#include "natives/builtin.h"
#ifndef _MSC_VER
#include <unistd.h>
#endif
#ifndef WIN32
#include <sys/wait.h>
#endif
namespace nasal {
struct subprocess_descriptor {
#ifndef WIN32
pid_t pid;
#else
STARTUPINFOW si;
PROCESS_INFORMATION pi;
#endif
};
void subprocess_desc_dtor(void*);
var builtin_subprocess_create(context*, gc*);
var builtin_subprocess_terminate(context*, gc*);
extern nasal_builtin_table subprocess_native[];
}