aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/progname.h
blob: 4cb2189556796f36ec34105df9e5b17a8976a145 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once
 
#include <util/generic/fwd.h>
 
void SetProgramName(const char* argv0); 

#define SAVE_PROGRAM_NAME        \ 
    do {                         \ 
        SetProgramName(argv[0]); \ 
    } while (0) 

/// guaranted return the same immutable instance of TString
const TString& GetProgramName();