File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 1+ import std/ asyncdispatch
2+ import std/ os
3+ export os
14
2- # # This whole module is only for Windows
5+ # # Windows stuff
36when defined (windows):
4-
57 import winim/ lean
6- import std/ asyncdispatch
7- import std/ os
8- export os
98
109
11- proc startNativeEventLoop * () {.async .} =
12- # #
13- # # Runs the Windows event loop in a manner that's compatible with async dispatch. Stops when WM_QUIT is received.
14- # #
10+ proc startNativeEventLoop * () {.async .} =
11+ # #
12+ # # Runs the Windows event loop in a manner that's compatible with async dispatch. Stops when WM_QUIT is received.
13+ # #
1514
16- # More planned, but for now stop if not on Windows
17- when not defined (windows):
18- return
15+ # More planned, but for now stop if not on Windows
16+ when not defined (windows):
17+ return
18+ else :
1919
2020 # Only allow it to run once at a time
2121 var isRunning {.global .} = false
You can’t perform that action at this time.
0 commit comments