Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dummy enum generation code assumes that values are given in ascending order #9

Open
twiglet opened this issue Mar 13, 2011 · 0 comments
Labels

Comments

@twiglet
Copy link
Owner

twiglet commented Mar 13, 2011

see Generic below:

public enum CorCallingConvention
{
Default = 0x0,

    VarArg        = 0x5,
    Field         = 0x6,
    LocalSig     = 0x7,
    Property      = 0x8,
    Unmanaged         = 0x9,
    GenericInst   = 0xa,  // generic method instantiation
    NativeVarArg  = 0xb,  // used ONLY for 64bit vararg PInvoke calls

        // The high bits of the calling convention convey additional info
    Mask      = 0x0f,  // Calling convention is bottom 4 bits
    HasThis   = 0x20,  // Top bit indicates a 'this' parameter
    ExplicitThis = 0x40,  // This parameter is explicitly in the signature
    Generic   = 0x10,  // Generic method sig with explicit number of type arguments (precedes ordinary parameter count)
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant