Skip to content

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

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);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions