Skip to content

Commit

Permalink
[wasm] Allow enums in unmanaged callbacks.
Browse files Browse the repository at this point in the history
  • Loading branch information
vargaz committed Nov 9, 2021
1 parent 8076775 commit 983595e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tasks/WasmAppBuilder/PInvokeTableGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ private void EmitNativeToInterp(StreamWriter w, List<PInvokeCallback> callbacks)

private static bool IsBlittable (Type type)
{
if (type.IsPrimitive || type.IsByRef || type.IsPointer)
if (type.IsPrimitive || type.IsByRef || type.IsPointer || type.IsEnum)
return true;
else
return false;
Expand Down

0 comments on commit 983595e

Please sign in to comment.