1 Star 0 Fork 0

lol/cpp-stub

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
test_function.cpp 282 Bytes
一键复制 编辑 原始数据 按行查看 历史
coolxv 提交于 2018-09-18 10:07 +08:00 . ^_&
#include<iostream>
#include "stub.h"
using namespace std;
int foo(int a)
{
cout<<"I am foo"<<endl;
return 0;
}
int foo_stub(int a)
{
cout<<"I am foo_stub"<<endl;
return 0;
}
int main()
{
Stub stub;
stub.set(foo, foo_stub);
foo(1);
return 0;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wcp_code/cpp-stub.git
git@gitee.com:wcp_code/cpp-stub.git
wcp_code
cpp-stub
cpp-stub
master

搜索帮助