File: execname.cc

package info (click to toggle)
performous 1.1%2Bgit20181118-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 11,712 kB
  • sloc: cpp: 30,008; ansic: 2,751; sh: 801; xml: 464; python: 374; makefile: 22
file content (18 lines) | stat: -rw-r--r-- 529 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "platform.hh"
#include "fs.hh"

/// Get the current executable name with path. Returns empty path if the name cannot be found. May return absolute or relative paths.

#if (BOOST_OS_WINDOWS)
#include "platform/execname.win.inc"
#elif (BOOST_OS_MACOS)
#include "platform/execname.mac.inc"
#elif (BOOST_OS_BSD)
#include "platform/execname.bsd.inc"
#elif (BOOST_OS_SOLARIS)
#include "platform/execname.sun.inc"
#elif (BOOST_OS_LINUX)
#include "platform/execname.unix.inc"
#else
	return fs::path();
#endif // BOOST_OS_WINDOWS