visual studio c linker wrap option?

元气小坏坏 提交于 2019-12-07 12:37:57

问题


From this article Unit testing with mock objects in C:

This is done by using the --wrap linker option which takes the name of the wrapped function as an argument. If the test was compiled using gcc, the invocation might look like:

$ gcc -g -Wl,--wrap=chef_cook waiter_test.c chef.c

How can I do this when compiling a C project in visual studio?

来源:https://stackoverflow.com/questions/33790425/visual-studio-c-linker-wrap-option

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!