Re: How does bundle injection work ? (DevToolsBundleInjection.framework)
Re: How does bundle injection work ? (DevToolsBundleInjection.framework)
- Subject: Re: How does bundle injection work ? (DevToolsBundleInjection.framework)
- From: "infinite labs" <email@hidden>
- Date: Tue, 21 Oct 2008 14:25:23 +0200
On Mon, Oct 20, 2008 at 11:22 PM, Daniel Luis dos Santos
<email@hidden> wrote:
> Hello,
>
> Using the testing framework, noticed that when configuring an executable for
> injecting the unit test bundle (to debug test cases), one uses the
> DevToolsBundleInjection.framework.
>
> I wonder how from a program with only a main function that does practically
> nothing (compiled with the -framework Foundation option) the code magically
> picks up command line options and injects the test code and runs it ?
>
> How does this happen ?
See the __attribute__((constructor)) docs in GCC's C reference.
- ∞
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden