-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunction_template.h
More file actions
42 lines (31 loc) · 1.12 KB
/
function_template.h
File metadata and controls
42 lines (31 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef V8GO_FUNCTION_TEMPLATE_H
#define V8GO_FUNCTION_TEMPLATE_H
#include "errors.h"
#include "fast_api.h"
#ifdef __cplusplus
namespace v8 {
class Isolate;
template <class F>
class FunctionCallbackInfo;
} // namespace v8
void FunctionTemplateCallback(const v8::FunctionCallbackInfo<v8::Value>& info);
typedef v8::Isolate v8Isolate;
extern "C" {
#else
typedef struct v8Isolate v8Isolate;
#endif
typedef struct m_template m_template;
typedef struct m_ctx m_ctx;
extern m_template* NewFunctionTemplate(v8Isolate* iso_ptr, int callback_ref);
extern m_template* NewFastFunctionTemplate(v8Isolate* iso_ptr,
int callback_ref,
const void* fast_fn,
CFunctionInfoPtr fn_info);
extern RtnValue FunctionTemplateGetFunction(m_template* ptr, m_ctx* ctx_ptr);
extern m_template* FunctionTemplateInstanceTemplate(m_template* ptr);
extern m_template* FunctionTemplatePrototypeTemplate(m_template* ptr);
extern void FunctionTemplateInherit(m_template* ptr, m_template* base);
#ifdef __cplusplus
} // extern "C"
#endif
#endif