Partager via


_trap

This function inserts a trap instruction.

int __cdecl __trap(
  arg1,
);

Parameters

  • arg1
    [in] The trap number.

Return Values

The integer value provided by the trap handler. If the trap handler provides no return value, the return value is undefined.

Remarks

The compiler back end can enforce restrictions on the arguments, including the trap number, and can define a special calling convention for the trap. The interpretation of the trap number and the actions taken by the trap handler are not defined.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Cmnintrin.h.

See Also

Common Intrinsic Functions

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.