File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,11 @@ public void IncrementEpoch()
44
44
Native . wasmtime_engine_increment_epoch ( handle ) ;
45
45
}
46
46
47
+ /// <summary>
48
+ /// Returns whether this engine is using the Pulley interpreter to execute WebAssembly code.
49
+ /// </summary>
50
+ public bool IsPulleyInterpreter => Native . wasmtime_engine_is_pulley ( NativeHandle ) ;
51
+
47
52
internal Handle NativeHandle
48
53
{
49
54
get
@@ -76,7 +81,7 @@ private static class Native
76
81
{
77
82
[ DllImport ( LibraryName ) ]
78
83
public static extern IntPtr wasm_engine_new ( ) ;
79
-
84
+
80
85
[ DllImport ( LibraryName ) ]
81
86
public static extern IntPtr wasm_engine_new_with_config ( Config . Handle config ) ;
82
87
@@ -85,6 +90,9 @@ private static class Native
85
90
86
91
[ DllImport ( LibraryName ) ]
87
92
public static extern void wasmtime_engine_increment_epoch ( Handle engine ) ;
93
+
94
+ [ DllImport ( LibraryName ) ]
95
+ public static extern bool wasmtime_engine_is_pulley ( Handle engine ) ;
88
96
}
89
97
90
98
private readonly Handle handle ;
You can’t perform that action at this time.
0 commit comments