Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Add _d_run_main to give applications more control at start #339

Merged
merged 1 commit into from Nov 1, 2012
Merged

Add _d_run_main to give applications more control at start #339

merged 1 commit into from Nov 1, 2012

Conversation

Wallbraker
Copy link
Contributor

Port of the same change that I made for D1, not run tested. But compile tested. Awaiting testing from tester.

Cheers, Jakob.

@Wallbraker
Copy link
Contributor Author

Now with 100% more solaris code!

@Wallbraker
Copy link
Contributor Author

Thanks to Alex/Zor for pointing out what exactly was needed for solaris.

Cheers, Jakob.

@alexrp
Copy link
Member

alexrp commented Oct 26, 2012

@braddr can you authorize @Wallbraker ?

@alexrp
Copy link
Member

alexrp commented Oct 31, 2012

@alexrp
Copy link
Member

alexrp commented Oct 31, 2012

argc is always of type int.

@Wallbraker
Copy link
Contributor Author

Thanks @alexrp, hmm looks like I need the extern(C) for windows.

Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
alexrp pushed a commit that referenced this pull request Nov 1, 2012
Add _d_run_main to give applications more control at start
@alexrp alexrp merged commit f399a15 into dlang:master Nov 1, 2012
denis-sh added a commit to denis-sh/druntime that referenced this pull request Nov 15, 2012
Such ambiguous `main` address selection compiles only because of Issue 9027 and works correctly by pure accident.

* Issue 9027 URL: http://d.puremagic.com/issues/show_bug.cgi?id=9027
* Causing commit from pull dlang#339: 278968f.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants