Thanks - yes, I'll add this. I'll do what I did for the assembler, like this: http://www.espruino.com/Reference#l_E_asm
So you get docs and if the IDE doesn't convert the call for some reason, you still get a sensible warning.
For functions like sin/etc I'm afraid life gets difficult as you only have access to a very specific set of exported functions from Espruino. It's not just the math functions that are missing, but even the ability to convert doubles to ints and so on. You can:
Nether solution is great, but I don't see there's much of a way around it given how it's all working.
© Espruino, powered by microcosm.
Report a problem