[Mono-devel-list] Enums in mono c api

Paolo Molaro lupus at ximian.com
Tue Mar 29 09:51:22 EST 2005


On 03/29/05 Joe Ante wrote:
> How do i determine the size of the enum in the c code? It seems to be passed
> by value and accepting it as a 4 byte integer seems to work but is that
> always correct?

You need to know the type of the enum: ususally it's a int32, but
a different type can be specified. Since you must control the
assembly the icall is defined in, you should also know what type 
the enum has.

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better



More information about the Mono-devel-list mailing list