New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Path::self() #2282
Comments
- fix Logging and Util conflicts - fix Logging and util leftover bugs - XML speedup - add FastMemoryPool for weak ref counting memory allocation speedup - Nullable for types without default constructor #617 (add alignment, fix warnings) - Global static objects (de)initialization #2261 - add AtomicFlag - add SpinlockMutex - Add Path::self() #2282 - SQLite mismatch open/close API calls #2275
@aleks-f pls assgin to me. |
@matejk see if we can squeeze this into 1.13. (needs to be properly tested on all major platforms; if not, push to 1.14 |
Just as curiosity: GNU provides simpler way to get program name if _GNU_SOURCE is defined through a constant C string:
https://man7.org/linux/man-pages/man3/program_invocation_name.3.html Linux, macOS and BSD also feature getprogname: https://www.unix.com/man-page/netbsd/3/getprogname/ On Windows, there is also |
* Merge remote-tracking branch 'jackywoo/add_self_to_path' into 2282-path-self * fix(Foundation): minor code cleanup. #2282 * enh(Foundation): Windows unit test for Path::self and exception for non-implemented platform. * fix(Foundation): Path::self() throws SystemException when the path can't be acquired. #2282 Co-developed-by: Jackie Woo <wuchienchao@qq.com> Co-developed-by: Matej Kenda <matejken@gmail.com>
Add an easy way to obtain the executable path. win/linux/mac only for now.
https://stackoverflow.com/a/1024937/205386
The text was updated successfully, but these errors were encountered: