Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CT Input Output Library
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
kulvait
CT Input Output Library
Commits
bd157a95
Commit
bd157a95
authored
Jan 17, 2020
by
kulvait
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIX RunTimeInfo
Second constructor fix
parent
d6746819
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/RunTimeInfo.cpp
src/RunTimeInfo.cpp
+7
-7
No files found.
src/RunTimeInfo.cpp
View file @
bd157a95
...
...
@@ -3,6 +3,13 @@
namespace
CTL
{
namespace
io
{
RunTimeInfo
::
RunTimeInfo
()
:
RunTimeInfo
(
0
,
nullptr
)
{
}
RunTimeInfo
::
RunTimeInfo
(
int
argc
,
char
*
argv
[])
:
argc
(
argc
)
,
argv
(
argv
)
{
char
exepath
[
PATH_MAX
+
1
]
=
{
0
};
ssize_t
len
=
::
readlink
(
"/proc/self/exe"
,
exepath
,
PATH_MAX
);
...
...
@@ -16,13 +23,6 @@ namespace io {
}
}
RunTimeInfo
::
RunTimeInfo
(
int
argc
,
char
*
argv
[])
:
argc
(
argc
)
,
argv
(
argv
)
{
RunTimeInfo
();
}
std
::
string
RunTimeInfo
::
getExecutablePath
()
{
return
(
executablePath
);
}
std
::
string
RunTimeInfo
::
getExecutableName
()
{
return
io
::
getBasename
(
executablePath
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment