VCCC
2024.05
VisualCamp Common C++ library
pwd.hpp
Go to the documentation of this file.
1
#
/*
2
# * Created by YongGyu Lee on 2020/12/08.
3
# */
4
#
5
# ifndef VCCC_LOG_PWD_HPP
6
# define VCCC_LOG_PWD_HPP
7
#
8
# include <string>
9
# include "boost/predef.h"
10
13
23
# ifndef VCCC_FILE_SEPARATOR
24
# if BOOST_COMP_MSVC
25
# define VCCC_FILE_SEPARATOR '\\'
26
# else
27
# define VCCC_FILE_SEPARATOR '/'
28
# endif
29
# endif
30
37
# define PWD \
38
[](){ \
39
std::string $13vlaae_dummy_str = __FILE__; \
40
return $13vlaae_dummy_str.substr( \
41
0, $13vlaae_dummy_str.find_last_of(VCCC_FILE_SEPARATOR)); \
42
}()
43
45
46
# endif
// VCCC_LOG_PWD_HPP
include
log
include
vccc
__log
pwd.hpp
Generated by
1.9.1