如何强制 SDL_Init() 失败?

Mic*_*ick 5 sdl

有没有办法SDL_Init()在测试用例中可靠地强制失败?

小智 0

我认为您可以通过不包含 SDL 动态链接库 (SDL.dll) 来强制它失败。