-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathcpps_async_object.h
More file actions
43 lines (39 loc) · 1.04 KB
/
cpps_async_object.h
File metadata and controls
43 lines (39 loc) · 1.04 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
43
#ifndef CPPS_ASYNC_OBJECT_CPPS_HEAD_
#define CPPS_ASYNC_OBJECT_CPPS_HEAD_
//===================================
//@Author : Johnson
//@QQ : 88481106
//@Email : 88481106@qq.com
//@Date : 2020/12/5 (yy/mm/dd)
//@Module : CPPS_ASYNC_OBJECT
//@Description : г̶ÔÏó
//@website : http://cppscript.org
//==================================
namespace cpps
{
struct cpps_async_task;
struct cpps_async_object
{
public:
cpps_async_object();
virtual~cpps_async_object();
cpps_value call(C* c);
void done_cb(C* c, object ret);
bool catch_cb(C* c, object ret);
cpps_async_object* done(C* c, cpps::object cb);
cpps_async_object* _catch(C* c, cpps::object cb);
cpps_async_task* get_task();
void set_task(cpps_async_task*task);
cpps_std_vector params;
cpps_domain* leftdomain;
cpps_function* f;
cpps_async_task* _task;
std::string filename;
std::string funcname;
int32 line;
cpps::object _cb;
cpps::object _catchcb;
bool iscatchd;
};
}
#endif //CPPS_ASYNC_OBJECT_CPPS_HEAD_