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?
Rust is compiled with
extern "C"
, meaningcdecl
, so caller should clean up. In C# we call this withstdcall
, 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?