src/sys/dotnet/perwapi/PERWAPI.cs
/// <summary>
/// Get the delta distance for this instruction.
/// </summary>
/// <remarks>
/// The delta distance is the resulting difference of items
/// left on the stack after calling this instruction.
/// </remarks>
/// <returns>An integer value representing the delta distance.</returns>
Get the delta distance for this instruction.
Get the delta distance for this instruction .
internal override int GetDeltaDistance() {
            int depth = (int)signature.NumPars * -1;
            if (signature.HasCallConv(CallConv.Instance)) depth--;
            if (signature.HasCallConv(CallConv.Vararg)) depth += (int)signature.NumOptPars * -1;
            if (signature.ReturnType.SameType(PrimitiveType.Void)) depth++;
            return depth;
        }
internal override int GetDeltaDistance ( ) { int depth = ( int ) signature . NumPars * - 1 ; if ( signature . HasCallConv ( CallConv . Instance ) ) depth -- ; if ( signature . HasCallConv ( CallConv . Vararg ) ) depth += ( int ) signature . NumOptPars * - 1 ; if ( signature . ReturnType . SameType ( PrimitiveType . Void ) ) depth ++ ; return depth ; }
Get the delta distance for this instruction.
Get the delta distance for this instruction .
// Add the parameter count to the depth // Check to see if this is an instance method // Check to see if this method uses the optional parameters // Check if a return value will be placed on the stack.
An integer value representing the delta distance.
An integer value representing the delta distance .
remarks
The delta distance is the resulting difference of items
left on the stack after calling this instruction.
The delta distance is the resulting difference of items left on the stack after calling this instruction .