• Hi,
    Is there a limit to the number of arguments that can be passed to an inlined C function?
    I get a message

    Uncaught Error: Error Parsing signature at argument number 6

    when attempting to set up an inline C function with 6 arguments. Everything appears fine up to 4 arguments.
    Thanks,
    Marko

  • Yes - it's due to the way functions are stored in Espruino. If you're running low, best bet is to put all your arguments into a Uint32Array and then pass a pointer to that.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Limit to number of arguments to inline C function

Posted by Avatar for user113695 @user113695

Actions