working
This commit is contained in:
parent
1f522319c5
commit
1f3a501e9b
1 changed files with 6 additions and 3 deletions
|
@ -41,7 +41,7 @@ class Context {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
struct metacall_log_stdio_type log_stdio = { stdout };
|
struct metacall_log_stdio_type log_stdio = { stdout };
|
||||||
void* handle = NULL; // function pointer
|
//void* handle = NULL; // function pointer
|
||||||
};
|
};
|
||||||
|
|
||||||
static Context context;
|
static Context context;
|
||||||
|
@ -77,7 +77,10 @@ void process_output_plugin_metacall_init()
|
||||||
// Load scripts
|
// Load scripts
|
||||||
if (metacall_load_from_file("node",
|
if (metacall_load_from_file("node",
|
||||||
js_scripts,
|
js_scripts,
|
||||||
sizeof(js_scripts) / sizeof(js_scripts[0]), &context.handle) != 0)
|
sizeof(js_scripts) / sizeof(js_scripts[0]),
|
||||||
|
//&context.handle
|
||||||
|
NULL
|
||||||
|
) != 0)
|
||||||
{
|
{
|
||||||
printf("error loading scripts!");
|
printf("error loading scripts!");
|
||||||
//return cleanup(3);
|
//return cleanup(3);
|
||||||
|
@ -110,7 +113,7 @@ std::string process_output_plugin_metacall(const std::string start,
|
||||||
void process_output_plugin_metacall_destroy()
|
void process_output_plugin_metacall_destroy()
|
||||||
{
|
{
|
||||||
|
|
||||||
metacall_clear(context.handle);
|
//metacall_clear(context.handle);
|
||||||
//if (
|
//if (
|
||||||
metacall_destroy();
|
metacall_destroy();
|
||||||
//!= 0)
|
//!= 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue