Long answer will explain why module code cannot include C source.
Will provide link to long answer in a future post.
Edit: there is some misunderstandings going on... I interpreted the line
>var c = require("https://github.com/sleuthware/EspruinoDocs/blob/master/modules/moduleInlineCTest.js");
as being executed in the console, because it has the leading > console prompt. The issue is though something totally different, as posted in #6 (post #6 provides the answer and replaces the promised link).
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.
Short answer: works as designed.
Long answer will explain why module code cannot include C source.
Will provide link to long answer in a future post.
Edit: there is some misunderstandings going on... I interpreted the line
as being executed in the console, because it has the leading
>
console prompt. The issue is though something totally different, as posted in #6 (post #6 provides the answer and replaces the promised link).