Skip to content

stub function will not be called when two nested functions in the same file #26

Open
@dsocer

Description

@dsocer

In the following example, test_stub will not be called. But test_stub will be call when fun1 and fun2 are in two diff files.

main.c:
int test_stub(int a){
return 0;
}
stub.set(fun1, test_stub);
fun2(1);

test.c:
fun1(int a){return a;}
fun2(int a){ return fun1(a);}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions