-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathcpps_lambda_function.h
More file actions
33 lines (29 loc) · 1015 Bytes
/
cpps_lambda_function.h
File metadata and controls
33 lines (29 loc) · 1015 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
#ifndef CPPS_LAMBDAFUNCTION_CPPS_HEAD_
#define CPPS_LAMBDAFUNCTION_CPPS_HEAD_
//===================================
//@Author : Johnson
//@QQ : 88481106
//@Email : 88481106@qq.com
//@Date : 2020/12/4 (yy/mm/dd)
//@Module : CPPS_CPPSFUNCTION
//@Description : Cppsº¯Êý´¦Àí
//@website : http://cppscript.org
//==================================
namespace cpps
{
struct cpps_lambda_function : public cpps_function
{
cpps_lambda_function();
virtual ~cpps_lambda_function();
void setrealfunc(cpps_cppsfunction* func);
virtual void callfunction(C* c, cpps_value* ret, cpps_domain* domain, cpps_std_vector* o, cpps_stack* stack = NULL, std::vector< cpps_regvar*>* lambdastacklist = NULL);
virtual std::string getfuncname();
virtual bool getIsNeedC();
virtual int8 getparamcount();
cpps_cppsfunction* realfunc;
std::vector< cpps_regvar*>* stacklist;
C* c;
};
void cpps_reglambdafunction(C* c);
}
#endif //CPPS_LAMBDAFUNCTION_CPPS_HEAD_