Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

DECLINLINE ( unsigned   ) 

Figures the size of the return state on the stack.

Returns:
number of bytes. 0 if invalid parameter.
Parameters:
enmRetType The type of return.

Definition at line 696 of file dbgf.h.

References DBGFRETURNTYPE_FAR16, DBGFRETURNTYPE_FAR32, DBGFRETURNTYPE_FAR64, DBGFRETURNTYPE_IRET16, DBGFRETURNTYPE_IRET32, DBGFRETURNTYPE_IRET32_PRIV, DBGFRETURNTYPE_IRET32_V86, DBGFRETURNTYPE_IRET64, DBGFRETURNTYPE_NEAR16, DBGFRETURNTYPE_NEAR32, and DBGFRETURNTYPE_NEAR64.

{
    switch (enmRetType)
    {
        case DBGFRETURNTYPE_NEAR16:         return 2;
        case DBGFRETURNTYPE_NEAR32:         return 4;
        case DBGFRETURNTYPE_NEAR64:         return 8;
        case DBGFRETURNTYPE_FAR16:          return 4;
        case DBGFRETURNTYPE_FAR32:          return 4;
        case DBGFRETURNTYPE_FAR64:          return 8;
        case DBGFRETURNTYPE_IRET16:         return 6;
        case DBGFRETURNTYPE_IRET32:         return 4*3;
        case DBGFRETURNTYPE_IRET32_PRIV:    return 4*5;
        case DBGFRETURNTYPE_IRET32_V86:     return 4*9;
        case DBGFRETURNTYPE_IRET64:
        default:
            return 0;
    }
}


Generated by  Doxygen 1.6.0   Back to index