Compartilhar via


JsNativeFunction Typedef

A function callback.

Syntax

typedef _Ret_maybenull_ JsValueRef (CALLBACK * JsNativeFunction)(  
   _In_ JsValueRef callee,  
   _In_ bool isConstructCall,  
   _In_ JsValueRef *arguments,  
   _In_ unsigned short argumentCount  
);  

Parameters

callee
A Function object that represents the function being invoked.

isConstructCall
Indicates whether this is a regular call or a 'new' call.

arguments
The arguments to the call.

argumentCount
The number of arguments.

Property Value/Return Value

The result of the call, if any.

Requirements

Header: jsrt.h

See Also

Reference (JavaScript Runtime)