forked from loongly/PureScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScriptEngine.cs
More file actions
25 lines (18 loc) · 716 Bytes
/
ScriptEngine.cs
File metadata and controls
25 lines (18 loc) · 716 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using UnityEngine;
using System.Runtime.InteropServices;
using AOT;
using System;
namespace PureScript
{
public class ScriptEngine
{
const string XMONO_LIB = "__Internal";
//const string XMONO_LIB = "ScriptEngine";
[DllImport(XMONO_LIB, CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr GetFuncPointer();
[DllImport(XMONO_LIB, EntryPoint = "OnExceptionMono", CallingConvention = CallingConvention.Cdecl)]
public static extern void OnException(string msg);
[DllImport(XMONO_LIB, EntryPoint = "CheckExceptionIl2cpp", CallingConvention = CallingConvention.Cdecl)]
public static extern void CheckException();
}
}