find_living.c

v22.2b14/testsuite/single/tests/efuns/find_living.c · 318 B

From the archive beta.tar.gz

Download the archive   « Back to the archive contents

void do_tests() {
#ifndef __NO_ADD_ACTION__
    object ob;
    object tp;
    
    ASSERT(!find_living("bar"));
    SAVETP;
    enable_commands();
    set_living_name("bar");
    ob = find_living("bar");
    disable_commands();
    RESTORETP;
    ASSERT(ob == this_object());
    ASSERT(!find_living("bar"));
#endif
}

Site Stats

Snippets: 1791
Codebases: 571