-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathjsr.h
More file actions
32 lines (24 loc) · 573 Bytes
/
jsr.h
File metadata and controls
32 lines (24 loc) · 573 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
//
// Created by Ammar Ahmed on 01/12/2024.
//
#ifndef TEST_APP_JSR_H
#define TEST_APP_JSR_H
#include "jsr_common.h"
#include "jsc-api.h"
typedef struct napi_runtime__ *napi_runtime;
class NapiScope {
public:
explicit NapiScope(napi_env env, bool openHandle = true)
: env_(env)
{
// napi_open_handle_scope(env_, &napiHandleScope_);
}
~NapiScope() {
// napi_close_handle_scope(env_, napiHandleScope_);
}
private:
napi_env env_;
napi_handle_scope napiHandleScope_;
};
#define JSEnterScope
#endif //TEST_APP_JSR_H