Skip to content

Commit

Permalink
[wasm] Allow enums in unmanaged callbacks. (#61393)
Browse files Browse the repository at this point in the history
Fixes #61144.

Co-authored-by: Zoltan Varga <vargaz@gmail.com>
  • Loading branch information
github-actions[bot] and vargaz committed Nov 12, 2021
1 parent 9b58e44 commit 8881fcf
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 8881fcf

Please sign in to comment.