ldmud/test/t-python/testrp.c
Alexander Motzkau 987b89bbd8 Python: Added protector for replace_program()
When lfun or variable objects are created, we need to make sure,
the indices are adjusted if a replace_program() is in progress.
Just like closures we create a protector structure that will be
processed after the replace_program().
2020-04-28 22:30:06 +02:00

10 lines
247 B
C

/* This is for a test to check, whether the indices
* are adjusted after a replace_program().
*/
inherit "inh"; /* Has one function and variable. */
inherit "testob"; /* The final program. */
void create()
{
replace_program("testob");
}