Skip to content
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

Implement Process.exePath #47

Closed
wants to merge 1 commit into from

Conversation

vladimyr
Copy link
Contributor

Implement static getter exePath for the Process class.

{
wrenEnsureSlots(vm, 1);

char buffer[WREN_PATH_MAX * 2 + 1];
Copy link
Contributor

Choose a reason for hiding this comment

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

We should really be using WREN_PATH_MAX everywhere... does it need to be increased or is there some reason we need much more storage here - in which case I'd suggest we may need another constant vs hard-coding this behavior in multiple places.

@ruby0x1 ruby0x1 closed this Apr 28, 2021
@vladimyr
Copy link
Contributor Author

Hm, ok but we can only guess why? 😕

@joshgoebel
Copy link
Contributor

I believe this needs to be just Process.path (simpler naming is our style here), and the other unrelated changes (moving version around) in the PR should be removed so that it's just this one singular change. And we don't need to muck with WREN_PATH_MAX, the max path should be more than sufficient.

@vladimyr Would you want to submit an updated PR?

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.

3 participants