Skip to content

JsNativeFunction

Limin Zhu edited this page Jul 3, 2017 · 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

  • callee: The JavaScript callee.
  • isConstructCall: Indicates whether this is a regular call or a 'new' call.
  • arguments: The arguments to the call. arguments[0] is this or undefined if the function is called plainly.
  • argumentCount: The number of arguments.
  • callbackState: The state passed to JsCreateFunction.

Return Value

The result of the call, if any.

Clone this wiki locally
You can’t perform that action at this time.