progname.h 301 B

12345678910111213
  1. #pragma once
  2. #include <util/generic/fwd.h>
  3. void SetProgramName(const char* argv0);
  4. #define SAVE_PROGRAM_NAME \
  5. do { \
  6. SetProgramName(argv[0]); \
  7. } while (0)
  8. /// guaranted return the same immutable instance of TString
  9. const TString& GetProgramName();