On Wed, Apr 30, 2008 at 7:19 PM, Robert Jordan <[EMAIL PROTECTED]> wrote:
> For unix:
>
> #include <dlfcn.h>
>
> /* let's assume this is a function exposed to mono: */
> void test ()
> {
> /* get the address of one of mono's API functions */
> void *p = dlsym (NULL, "mono_runtime_invoke");
> if (p) {
> inside mono ...
> }
> }
>
> The code for Windows is slightly complicated. See
> mono/utils/mono-dl.c:w32_find_symbol().
Hmm, dlsym, clever. Certainly not something I would have immediately
thought of.
Just an idea: does mono (or MS.NET) set any environment variables?
I'm sure those could be tested in a far more portable fashion.
--
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers
_______________________________________________
Mono-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list