forked from tommie/v8go
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathfunction_template.h
More file actions
37 lines (26 loc) · 870 Bytes
/
Copy pathfunction_template.h
File metadata and controls
37 lines (26 loc) · 870 Bytes
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
#ifndef V8GO_FUNCTION_TEMPLATE_H
#define V8GO_FUNCTION_TEMPLATE_H
#include "errors.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 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