Skip to content

Commit a8cc1d0

Browse files
authored
[wasm] Allow enums in unmanaged callbacks. (#61377)
Fixes #61144.
1 parent 3076586 commit a8cc1d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tasks/WasmAppBuilder/PInvokeTableGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ private void EmitNativeToInterp(StreamWriter w, List<PInvokeCallback> callbacks)
415415

416416
private static bool IsBlittable (Type type)
417417
{
418-
if (type.IsPrimitive || type.IsByRef || type.IsPointer)
418+
if (type.IsPrimitive || type.IsByRef || type.IsPointer || type.IsEnum)
419419
return true;
420420
else
421421
return false;

0 commit comments

Comments
 (0)