-
• #2
The issue isn't executing a function - it's just that the function you have defined in C isn't returning a value (so it'll be returning some random memory address).
If you stick a
return 0
at the end of it, it should work. It's worth checking out the warnings the compiler gives you, as it probably would have flagged that one up :) -
• #3
Business as usual, problems between ears of developer ;-)
Thanks a lot
I would like to call a javascript function from c and use the return value.
In first test:
got this error, after ExecJS(function(){return 99;}); whats wrong ?
WARNING: na sowas: 99
WARNING: done
=ASSERT(v->flags == JSV_UNUSED) FAILED AT src/jsvar.c:399
#1[r1,l2] Object {
}
HALTING.