Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ BeginExceptFilterBlock()

override void System.Reflection.Emit.DynamicILGenerator.BeginExceptFilterBlock ( )
inlinevirtual

Reimplemented from System.Reflection.Emit.ILGenerator.

Definition at line 272 of file DynamicILGenerator.cs.

273 {
274 if (base.CurrExcStackCount == 0)
275 {
276 throw new NotSupportedException(SR.Argument_NotInExceptionBlock);
277 }
278 __ExceptionInfo _ExceptionInfo = base.CurrExcStack[base.CurrExcStackCount - 1];
279 Label endLabel = _ExceptionInfo.GetEndLabel();
280 Emit(OpCodes.Leave, endLabel);
281 UpdateStackSize(OpCodes.Nop, 1);
282 _ExceptionInfo.MarkFilterAddr(ILOffset);
283 }
void UpdateStackSize(OpCode opcode, int stackchange)

References System.SR.Argument_NotInExceptionBlock, System.Reflection.Emit.__ExceptionInfo.GetEndLabel(), System.Reflection.Emit.ILGenerator.ILOffset, System.Reflection.Emit.OpCodes.Leave, System.Reflection.Emit.__ExceptionInfo.MarkFilterAddr(), System.Reflection.Emit.OpCodes.Nop, and System.Reflection.Emit.ILGenerator.UpdateStackSize().