forked from Taritsyn/JavaScriptEngineSwitcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJsNativeFunction.cs
More file actions
16 lines (15 loc) · 849 Bytes
/
JsNativeFunction.cs
File metadata and controls
16 lines (15 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using System;
using System.Runtime.InteropServices;
namespace JavaScriptEngineSwitcher.ChakraCore.JsRt
{
/// <summary>
/// The function callback
/// </summary>
/// <param name="callee">The <c>Function</c> object that represents the function being invoked</param>
/// <param name="isConstructCall">Indicates whether this is a regular call or a 'new' call</param>
/// <param name="arguments">The arguments to the call</param>
/// <param name="argumentCount">The number of arguments</param>
/// <param name="callbackData">Callback data, if any</param>
/// <returns>The result of the call, if any</returns>
internal delegate JsValue JsNativeFunction(JsValue callee, [MarshalAs(UnmanagedType.U1)] bool isConstructCall, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 3)] JsValue[] arguments, ushort argumentCount, IntPtr callbackData);
}