2021-04-23 20:05:42 +02:00
|
|
|
#pragma save_types, rtt_checks, lightweight, clone, save_local_names
|
2020-01-18 19:04:42 +01:00
|
|
|
|
|
|
|
|
nosave protected int|float testvar = 42;
|
2020-01-18 17:24:26 +01:00
|
|
|
|
2020-01-23 23:24:22 +01:00
|
|
|
string var_testob = "v_testob";
|
|
|
|
|
string fun_testob()
|
|
|
|
|
{
|
|
|
|
|
return "f_testob";
|
|
|
|
|
}
|
|
|
|
|
|
2016-01-15 17:31:26 +01:00
|
|
|
int loaded()
|
|
|
|
|
{
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void create()
|
|
|
|
|
{
|
|
|
|
|
}
|
2020-01-18 17:24:26 +01:00
|
|
|
|
|
|
|
|
nomask protected int testfun(<int|float> value, varargs string* args)
|
|
|
|
|
{
|
|
|
|
|
return sizeof(args);
|
|
|
|
|
}
|
2021-04-09 22:43:25 +02:00
|
|
|
|
|
|
|
|
async string* testcoroutine(varargs string* args)
|
|
|
|
|
{
|
2021-04-23 20:05:42 +02:00
|
|
|
string local = "X";
|
|
|
|
|
return args + ({ yield(sizeof(args)), local });
|
2021-04-09 22:43:25 +02:00
|
|
|
}
|
2024-03-23 23:21:20 +01:00
|
|
|
|
|
|
|
|
mixed callback(closure fun)
|
|
|
|
|
{
|
|
|
|
|
return funcall(fun);
|
|
|
|
|
}
|