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