Skip to content

Commit 7f09e85

Browse files
committed
init
1 parent 7b9d5af commit 7f09e85

105 files changed

Lines changed: 22485 additions & 1 deletion

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

PocketPython/Bindings.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using System;
2+
using System.Runtime.InteropServices;
3+
4+
namespace PocketPython
5+
{
6+
public static class Bindings
7+
{
8+
#if !UNITY_EDITOR && UNITY_IOS
9+
private const string _libName = "__Internal";
10+
#else
11+
private const string _libName = "pocketpy";
12+
#endif
13+
[DllImport(_libName)]
14+
public static extern void pkpy_compile_to_string(IntPtr vm, string source, string filename, int mode, out bool ok, out string res);
15+
[DllImport(_libName)]
16+
public static extern IntPtr pkpy_new_vm(bool enable_os);
17+
}
18+
}

0 commit comments

Comments
 (0)