I get the same thing here - I'm afraid there's some kind of problem with the compiled code's handling of function parameters. I haven't been able to figure it out yet I'm afraid.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I get the same thing here - I'm afraid there's some kind of problem with the compiled code's handling of function parameters. I haven't been able to figure it out yet I'm afraid.
For instance:
However the C++ function that's being created from it appears to be fine:
(SV is a 'smart pointer' class). I can only assume it's something to do with the way GCC is actually compiling the code :(