eLua extension for SWIG-Lua generates LTR (Lua tiny ram) compatible wrappers for smaller devices running embedded Lua.
We reserve %insert("begin") for users only, so please use %insert("runtime") at the top of the lua.swg or luaruntim.swg.
Are there any macros in elua or eluac that could instead be used to write code that will work for any of lua, elua or eluac? That way, the -lua and -eluac flags will not be necessary as the code will just work for any variant of lua. That is generally the approach we try and use in SWIG.
Finally, did you check that the original lua test-suite works as before - this is essential? Do the test-suite work with elua and eluac?
Please submit a new patch attachment to this ticket and I'll apply to trunk.
LTR compatible code generation for eLua
I have used %runtime and changed the code in lua.swg.
Please look for attachment.
There are no macros in eLua that could be used for compatibility
with SWIG Lua. eLua provides macros which are very specific to
a few embedded architectures and memory optimization.
Yes, certainly. I used the test-suite. The tests were successful.
eLua was tested on TRICORE and on the Luminary Micro-
LM3S8962. (ARM Cortex M3).
Awaiting your response,
Moved code under %begin to %runtime in lua.swg
Updated patch for eLua; From rev:12807
Many thanks. I've committed this with a few tweaks to your last patch.
Could you please enhance the documentation for this in Lua.html and provide it as an additional patch? I'll leave this ticket open until this has been done. Thanks.
Lua.html documentation update for eLua
I have updated the documentation for eLua in Lua.html. Please look for the patch in the
attachment.Please let me know if this works.
Great, thanks. Committed for swig-1.3.25.
Correction: committed for swig-2.0.5.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.