environment.c
ds2.10/fluffos-2.16-ds05/testsuite/single/tests/efuns/environment.c · 337 B
From the archive ds2.10.zip
Download the archive « Back to the archive contents
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
}