[Scummvm-devel] Use of exceptions / setjmp in Lua

Pierre-Yves GĂ©rardy pygy79 at gmail.com
Tue Oct 19 17:15:27 CEST 2010


-- Pierre-Yves


On Tue, Oct 19, 2010 at 13:18, Max Horn <max at quendi.de> wrote:

> Looking at luaconf.h, it turns out that the Lua code indeed makes use of
> setjmp. That's rather bad news, as setjmp is not that portable. Instead of
> setjmp, Lua can apparently also use C++ exceptions -- something we have
> tried to avoid so far (and disabled in our build system). Still, I figure it
> might cause less harm to use those than to use setjmp. But either way, we'll
> have to deal with this.


You may want to ask for advice on the Lua mailing list:
http://www.lua.org/lua-l.html . This kind of question arises quite often.

However, we then still would have the problem of pluto being tightly linked
> to the exact Lua version... However, note that from the pluto homepage <
> http://lua-users.org/wiki/PlutoLibrary>, though, it sounds as if any Lua
> 5.1.x version would be acceptable. Is that correct?
>

The .x versions are bug fixes. All 5.1.x versions should be source-code,
bytecode and API compatible.
Here's the change log:
http://www.lua.org/bugs.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scummvm.org/pipermail/scummvm-devel/attachments/20101019/89c573f3/attachment.html>


More information about the Scummvm-devel mailing list