Skip to content

JsNativeFunction

Limin Zhu edited this page Sep 13, 2016 · 4 revisions

A function callback.

Syntax

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

Parameters

  • isConstructCall: Indicates whether this is a regular call or a 'new' call.
  • arguments: The arguments to the call.
  • argumentCount: The number of arguments.
  • callbackState: The state passed to JsCreateFunction.

Return Value

The result of the call, if any.

Remarks

arguments[0] is always thisArg.

Clone this wiki locally