diff options
| author | Andre Weissflog <floooh@gmail.com> | 2025-11-17 14:12:23 +0100 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2025-11-17 14:12:23 +0100 |
| commit | b517f27e7d6bdefc7883110e42dab27cba800b50 (patch) | |
| tree | 5ac979d40966782bfcfdb23a4425e4325052d0c9 /sokol_app.h | |
| parent | cf86ab50ad79cbcc9a7f7673892a8dc818c59494 (diff) | |
sokol_app.h win32: add a doc blurb about setting both win32_console_attach and win32_console_create (see: https://github.com/floooh/sokol/pull/1374)
Diffstat (limited to 'sokol_app.h')
| -rw-r--r-- | sokol_app.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sokol_app.h b/sokol_app.h index dd798650..797bbf95 100644 --- a/sokol_app.h +++ b/sokol_app.h @@ -1206,6 +1206,11 @@ doesn't matter if the application is started from the command line or via double-click. + NOTE: setting both win32_console_attach and win32_console_create + to true also makes sense and has the effect that output + will appear in the existing terminal when started from the cmdline, and + otherwise (when started via double-click) will open a console window. + MEMORY ALLOCATION OVERRIDE ========================== You can override the memory allocation functions at initialization time @@ -8562,7 +8567,7 @@ _SOKOL_PRIVATE void _sapp_win32_init_console(void) { } if (!con_valid && _sapp.desc.win32_console_create) { con_valid = AllocConsole(); - } + } if (con_valid) { FILE* res_fp = 0; errno_t err; |