[Mono-dev] Confused about "mono_array_to_lparray" function

Robert Jordan robertj at gmx.net
Mon Dec 28 06:04:29 EST 2009


On 28.12.2009 11:10, Laurent Etiemble wrote:
> Hello,
>
> I have a question regarding the "mono_array_to_lparray" function found in
> "mono/metadata/marshal.c:551".
>
> Almost all the function body is decorated by a "#ifndef DISABLE_COM" define
> that I have hard time to understand:
> - If DISABLE_COM is defined (whatever the value), the code is included in
> the build.
> - If DISABLE_COM is not defined, the code is excluded from the build.
>
> After reading the change logs (rev #139201, #140524, #141169) and the
> associated bug report that lead to the code (#467509), I am still confused:
> - Is the decorated code meant to be included when COM Interop is enabled or
> disabled ?

DISABLE_COM is never set unless you're building a minimal Mono
with --enable-minimal=com...

This means that mono_array_to_lparray is part of a standard
Mono build, because DISABLE_COM is not set.

Robert



More information about the Mono-devel-list mailing list