Share via


__trap (Windows Embedded CE 6.0)

1/5/2010

This function inserts a trap instruction.

Syntax

int __cdecl __trap(int arg1, ...);

Parameters

  • arg1
    [in] The trap number.

Return Value

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

Remarks

The compiler backend 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

Architecture ARM, MIPS, SH-4, x86
Header cmnintrin.h
Routine __trap

See Also

Reference

Common Intrinsic Functions for Device Compilers

Other Resources

Intrinsic Functions for Device Compilers