ldmud/test/t-python/testob.c

35 lines
531 B
C
Raw Permalink Normal View History

#pragma save_types, rtt_checks, lightweight, clone, save_local_names
nosave protected int|float testvar = 42;
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()
{
}
nomask protected int testfun(<int|float> value, varargs string* args)
{
return sizeof(args);
}
async string* testcoroutine(varargs string* args)
{
string local = "X";
return args + ({ yield(sizeof(args)), local });
}
mixed callback(closure fun)
{
return funcall(fun);
}