origin.c

v22.2b14/testsuite/single/tests/efuns/origin.c · 383 B

From the archive beta.tar.gz

Download the archive   « Back to the archive contents

void lfun() {
    ASSERT(origin() == "local");
}

void co() {
    ASSERT(origin() == "internal");
}

void ef() {
    ASSERT(origin() == "efun");
}

void do_tests() {
    ASSERT(origin() == "call_other");
    lfun();
    call_out("co", 1);
    filter( ({ 1 }), "ef");
    ASSERT(evaluate( (: origin :)) == "function pointer");
    ASSERT(evaluate( (: origin() :)) == "functional");
}

Site Stats

Snippets: 1791
Codebases: 571