-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathntemplate.cc
35 lines (35 loc) · 1.02 KB
/
ntemplate.cc
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
/**
* Copyright (c) 2018, SOW (https://www.safeonline.world). (https://github.com/RKTUXYN) All rights reserved.
* @author {SOW}
* Copyrights licensed under the New BSD License.
* See the accompanying LICENSE file for terms.
*/
#ifndef INCLUDE_V8_H_
#include <v8.h>
#endif // !INCLUDE_V8_H_
#include "src/core.h"
//Final Build on 8:45 PM 11/6/2018
#ifdef __EXPORT
#include "src/exp.h"
#else
#ifndef SRC_NODE_H_
#include <node.h>
#endif //!SRC_NODE_H_
#ifdef __cplusplus
extern "C" {
#endif//!__cplusplus
void RegisterModule(v8::Handle<v8::Object> target) {
NODE_SET_METHOD(target, "runScript", RUN_SCRIPT);
NODE_SET_METHOD(target, "parse", PARSE_TEMPLATE);
#if defined(_M_CEE) ///clr or /clr:pure //_IOSFWD_
#error <thread> is not supported when compiling with /clr or /clr:pure.
#else
NODE_SET_METHOD(target, "parseo", PARSE_INTERNAL);
NODE_SET_METHOD(target, "async", RUN_ASYNC);
#endif//!_M_CEE
}
NODE_MODULE(NTemplate, RegisterModule)
#ifdef __cplusplus
}
#endif//!__cplusplus
#endif//!__EXPORT