[riot-notifications] [RIOT-OS/RIOT] pkg: add support for Elk Tiny Javascript engine (#16887)

benpicco notifications at github.com
Tue Sep 28 13:33:40 CEST 2021


@benpicco commented on this pull request.



> + *
+ *              Taken from README at https://github.com/cesanta/elk
+ * @}
+ */
+#include <stdio.h>
+#include "elk.h"
+
+/* C function that adds two numbers. Will be called from JS */
+int sum(int a, int b)
+{
+    return a + b;
+}
+
+int main(void)
+{
+    char mem[256];

```suggestion
    static char mem[256];
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16887#pullrequestreview-765316867
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210928/c4a9a5d6/attachment.htm>


More information about the notifications mailing list