mirror of
https://github.com/ldmud/ldmud
synced 2026-08-12 14:26:05 -04:00
Added BEFORE_INSTRUCTION hook to be called for every instruction. Added call_stack property to query the current stack.
34 lines
531 B
C
34 lines
531 B
C
#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";
|
|
}
|
|
|
|
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);
|
|
}
|