Skip to content

Commit 9bace22

Browse files
committed
stub LOG_DUMP_CMDLINE for WIN32 for now
1 parent c8a1118 commit 9bace22

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

common/log.h

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -491,14 +491,16 @@ inline void log_print_usage()
491491
fprintf(stdout, " Log file will be tagged with unique ID and written as \"<name>.<ID>.log\"\n"); /* */
492492
}
493493

494+
#ifndef _WIN32
495+
// TODO:
496+
// Windows doesn't seem to like this somehow
497+
494498
#define LOG_DUMP_CMDLINE( argc, argv ) _log_dump_cmdline(argc,argv)
495499

496500
// INTERNAL, DO NOT USE
497501
inline void _log_dump_cmdline(int argc, char **argv)
498502
{
499-
// TODO:
500-
// Windows doesn't seem to like this somehow
501-
std::string buf{""};
503+
std::string buf;
502504
for (int i = 0; i < argc; ++i)
503505
{
504506
if (std::string(argv[i]).find(' ') != std::string::npos)
@@ -513,6 +515,10 @@ inline void _log_dump_cmdline(int argc, char **argv)
513515
LOGLN("Cmd:%s", buf.c_str())
514516
}
515517

518+
#else
519+
#define LOG_DUMP_CMDLINE(...) // dummy stub
520+
#endif
521+
516522
#define LOG_TOSTR(var) _log_var_to_string(var).c_str()
517523

518524
inline std::string _log_var_to_string(bool var)

0 commit comments

Comments
 (0)