environment.c

v22.2b14/testsuite/single/tests/efuns/environment.c · 335 B

From the archive beta.tar.gz

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
}

	

Site Stats

Snippets: 1791
Codebases: 571