File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -4791,7 +4791,7 @@ HFONT CreateFont(
4791
4791
</function>
4792
4792
<!--BOOL WINAPI FlushConsoleInputBuffer(_In_ HANDLE hConsoleInput);-->
4793
4793
<function name="FlushConsoleInputBuffer">
4794
- <noreturn>true </noreturn>
4794
+ <noreturn>false </noreturn>
4795
4795
<returnValue type="BOOL"/>
4796
4796
<leak-ignore/>
4797
4797
<arg nr="1" direction="in">
Original file line number Diff line number Diff line change 7
7
// No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0
8
8
//
9
9
10
- #include < windows.h>
10
+ #include < Windows.h>
11
+ #include < WinCon.h>
11
12
#include < cstdio>
12
13
#include < direct.h>
13
14
#include < cstdlib>
18
19
#include < atlstr.h>
19
20
#include < string>
20
21
22
+ // / https://learn.microsoft.com/en-us/windows/console/flushconsoleinputbuffer
23
+ BOOL unreachableCode_FlushConsoleInputBuffer (int &val)
24
+ {
25
+ const BOOL retVal = FlushConsoleInputBuffer (GetStdHandle (STD_INPUT_HANDLE));
26
+ // still reachable after call FlushConsoleInputBuffer()
27
+ val = 42 ;
28
+ return retVal;
29
+ }
30
+
21
31
// / https://learn.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-getmodulefilenamew
22
32
std::string constVariable_GetModuleFileName (void ) {
23
33
char path[42 ];
You can’t perform that action at this time.
0 commit comments