query_verb.c

v22.2b14/testsuite/single/tests/efuns/query_verb.c · 259 B

From the archive beta.tar.gz

Download the archive   « Back to the archive contents

#ifndef __NO_ADD_ACTION__
void func() {
    ASSERT(query_verb() == "foo");
}
#endif

void do_tests() {
#ifndef __NO_ADD_ACTION__
    object tp;
    SAVETP;
    enable_commands();
    add_action( (: func :), "foo");
    RESTORETP;
    command("foo");
#endif
}

Site Stats

Snippets: 1791
Codebases: 571