Skip to content

Implementation of Path::self()#4319

Merged
matejk merged 4 commits intodevelfrom
2282-path-self
Dec 5, 2023
Merged

Implementation of Path::self()#4319
matejk merged 4 commits intodevelfrom
2282-path-self

Conversation

@matejk
Copy link
Copy Markdown
Contributor

@matejk matejk commented Dec 4, 2023

This PR contains content of PR #3758 by @JackyWoo with minor additional changes.

Resolves #2282.

@matejk matejk added this to the Release 1.13.0 milestone Dec 4, 2023
@matejk
Copy link
Copy Markdown
Contributor Author

matejk commented Dec 4, 2023

@aleks-f , it is very unlikely that the functions to get current program name would fail, however: shall an exception be thrown in that case?

assertTrue(self.find("testrunner") != std::string::npos);

#else
std::cout "Path::self() not implemented for this platform."
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing <<

@aleks-f
Copy link
Copy Markdown
Member

aleks-f commented Dec 4, 2023

@aleks-f , it is very unlikely that the functions to get current program name would fail, however: shall an exception be thrown in that case?

yes, throw something appropriate

@aleks-f aleks-f mentioned this pull request Dec 4, 2023
@matejk matejk merged commit 607b086 into devel Dec 5, 2023
@matejk matejk deleted the 2282-path-self branch December 5, 2023 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Path::self()

2 participants