confirming code generation
With --print-code nelua writes to stdout instead of a cache/explicit file. As the different sections of the code are clearly signposted, you can use sed to pull out those sections.
$ nelua --print-code -i 'local function longname(a: *[0]cstring) <nodce> end' | sed -n '/DECLARATIONS/,/DEFINITIONS/p' /* ------------------------------ DECLARATIONS ------------------------------ */ typedef char** nlcstring_arr0_ptr; static void eval_R3JFTdrFKg9_longname(nlcstring_arr0_ptr a); /* ------------------------------ DEFINITIONS ------------------------------- */
Or grep:
$ nelua --print-code -i 'local function longname(a: *[0]cstring) <nodce> end' | grep -A1000 DECLARATIONS
/* ------------------------------ DECLARATIONS ------------------------------ */
typedef char** nlcstring_arr0_ptr;
static void eval_R3JFTdrFKg9_longname(nlcstring_arr0_ptr a);
/* ------------------------------ DEFINITIONS ------------------------------- */
void eval_R3JFTdrFKg9_longname(nlcstring_arr0_ptr a) {
}
int main(int argc, char** argv) {
return 0;
}
And although the Lua generator isn't maintained, it's still around:
$ nelua -g lua --print-code -i 'local function longname(a: *[0]cstring) <nodce> end' local function longname(a) end