subdgtl / WFC

Prototype tools for playing with Wave Function Collapse
The Unlicense
5 stars 1 forks source link

Fix the calling convention? #32

Open yanchith opened 1 year ago

yanchith commented 1 year ago

Rust is compiled with extern "C", meaning cdecl, so caller should clean up. In C# we call this with stdcall, where it assumes the callee cleans up. Not sure why this didn't blow up terribly, but we should probably fix this.

Does C# somehow prevent the stack from growing indefinitely if nobody cleans it?