-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathSMJS.h
More file actions
40 lines (27 loc) · 632 Bytes
/
SMJS.h
File metadata and controls
40 lines (27 loc) · 632 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
38
39
40
#ifndef _INCLUDE_SMJS_H_
#define _INCLUDE_SMJS_H_
__pragma(warning(disable:4005) )
#include <stdint.h>
#define HAVE_STDINT_
#define HAVE_STDINT_H
#include "platform.h"
#define V8STDINT_H_
#include "v8.h"
#include "k7v8macros.h"
__pragma(warning(default:4005) )
//#include "sp_file_headers.h"
#define SMJS_API_VERSION 1
typedef int PLUGIN_ID;
class SMJS_Plugin;
class SMJS_BaseWrapped;
class SMJS_Module;
class IPluginDestroyedHandler {
public:
virtual void OnPluginDestroyed(SMJS_Plugin *plugin) = 0;
};
void SMJS_Init();
void SMJS_Ping();
void SMJS_Pause();
void SMJS_Resume();
extern v8::Isolate *mainIsolate;
#endif