[Mono-bugs] [Bug 415577] [PATCH] Can't pass by ref in a ContextBoundObject method

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Sep 5 08:22:58 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=415577

User robertj at gmx.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=415577#c7





--- Comment #7 from Robert Jordan <robertj at gmx.net>  2008-09-05 06:22:58 MDT ---
Zoltan, like this?

static int offset = -1;
static guint8 mask;

if (offset < 0)
        mono_marshal_find_bitfield_offset (MonoClass, contextbound, &offset,
&mask);

mono_mb_emit_ldarg (mb, 0);
mono_mb_emit_ldflda (mb, offset);
mono_mb_emit_byte (mb, CEE_LDIND_U1);
mono_mb_emit_icon (mb, mask);
mono_mb_emit_byte (mb, CEE_AND);
..


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list