mud/fluffos-2.23-ds03/testsuite/single/tests/efuns/environment.c
2020-09-06 05:43:07 -07:00

20 lines
335 B
C

void do_tests() {
#ifndef __NO_ENVIRONMENT__
object ob;
ASSERT(environment() == 0);
ASSERT(environment(this_object()) == 0);
ob = new(__FILE__, 1);
ASSERT(environment(ob) == this_object());
#endif
}
void create(int flag) {
#ifndef __NO_ENVIRONMENT__
if (flag)
move_object(previous_object());
#endif
}