Skip to content

是否支持 stub 命名空间函数? #41

@yiyiarrow

Description

@yiyiarrow

example:
namespace A {
namespace B {
namespace C {
int func(int a, std::string b)
{
xxxx;
return 0;
}
}
}
}

int stub_func(int a, std::string b)
{
return 1;
}

我试了以下几种方式都不行:
Stub stub;
stub.set(func, stub_func);
stub.set(A::B::C::func, stub_func);
stub.set(ADDR(A::B::C, func), stub_func);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions