File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -491,14 +491,16 @@ inline void log_print_usage()
491
491
fprintf (stdout, " Log file will be tagged with unique ID and written as \" <name>.<ID>.log\"\n " ); /* */
492
492
}
493
493
494
+ #ifndef _WIN32
495
+ // TODO:
496
+ // Windows doesn't seem to like this somehow
497
+
494
498
#define LOG_DUMP_CMDLINE ( argc, argv ) _log_dump_cmdline(argc,argv)
495
499
496
500
// INTERNAL, DO NOT USE
497
501
inline void _log_dump_cmdline (int argc, char **argv)
498
502
{
499
- // TODO:
500
- // Windows doesn't seem to like this somehow
501
- std::string buf{" " };
503
+ std::string buf;
502
504
for (int i = 0 ; i < argc; ++i)
503
505
{
504
506
if (std::string (argv[i]).find (' ' ) != std::string::npos)
@@ -513,6 +515,10 @@ inline void _log_dump_cmdline(int argc, char **argv)
513
515
LOGLN (" Cmd:%s" , buf.c_str ())
514
516
}
515
517
518
+ #else
519
+ #define LOG_DUMP_CMDLINE (...) // dummy stub
520
+ #endif
521
+
516
522
#define LOG_TOSTR (var ) _log_var_to_string(var).c_str()
517
523
518
524
inline std::string _log_var_to_string (bool var)
You can’t perform that action at this time.
0 commit comments