Flipper Developer Docs
Loading...
Searching...
No Matches
mjs_exec_public.h
1
/*
2
* Copyright (c) 2016 Cesanta Software Limited
3
* All rights reserved
4
*/
5
6
#ifndef MJS_EXEC_PUBLIC_H_
7
#define MJS_EXEC_PUBLIC_H_
8
9
#include "mjs_core_public.h"
10
#include <stdio.h>
11
12
#if defined(__cplusplus)
13
extern
"C"
{
14
#endif
/* __cplusplus */
15
16
mjs_err_t mjs_exec(
struct
mjs
*,
const
char
* src, mjs_val_t* res);
17
18
mjs_err_t mjs_exec_file(
struct
mjs
*
mjs
,
const
char
* path, mjs_val_t* res);
19
mjs_err_t mjs_apply(
20
struct
mjs
*
mjs
,
21
mjs_val_t* res,
22
mjs_val_t func,
23
mjs_val_t this_val,
24
int
nargs,
25
mjs_val_t* args);
26
mjs_err_t
27
mjs_call(
struct
mjs
*
mjs
, mjs_val_t* res, mjs_val_t func, mjs_val_t this_val,
int
nargs, ...);
28
mjs_val_t mjs_get_this(
struct
mjs
*
mjs
);
29
30
#if defined(__cplusplus)
31
}
32
#endif
/* __cplusplus */
33
34
#endif
/* MJS_EXEC_PUBLIC_H_ */
mjs
Definition
mjs_core.h:63
lib
mjs
mjs_exec_public.h
Generated by
1.12.0