[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua on platforms with no longjmp
- From: David Ludwig <dludwig@...>
- Date: Wed, 28 Jan 2009 22:04:34 -0500
With similar functionality available, you might also be able to just
modify luaconf.h (available as of Lua 5.1.x), adding the appropriate
longjmp replacements. Search for LUAI_THROW for more info.
Also note, if C++ style exception throwing is available for use on
this platform, Lua can be recompiled to use try/catch blocks instead
of setjmp and longjmp.
--
David Ludwig
dlidwig@pobox.com
On Wed, Jan 28, 2009 at 8:09 PM, David Given <dg@cowlark.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> The recent post on using Lua on cell phones reminds me...
>
> I work for Antix Labs, a company which produces a game playing platform
> that allows cross-platform native gaming (in C) on a variety of devices,
> including both high and low end mobile phones. You write the games in C
> using the OpenKODE standard APIs, compile them with our tools into a
> single deployable package, and then you can install that package onto
> any device with our software on it and it'll Just Work(tm).
>
> I'd rather like to port Lua to work on OpenKODE, because then we can use
> it as a test harness, and possibly for demo apps. It should be ideal,
> except for one small niggle: OpenKODE doesn't have longjmp.
>
> Now, because I'm an insider I can make this work (there are internal
> APIs that provide the necessary functionality), but it's fragile and
> fiddly and I'd very much rather use the official APIs where possible.
> So, can anyone recommend any strategies I should look at?
>
> (mandatory fun corporate links follow)
>
> http://www.antixlabs.com
> http://www.khronos.org/openkode/
>
> - --
> David Given
> dg@cowlark.com
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFJgQE0f9E0noFvlzgRAiGGAKC5qXw1yxsMW2+t1M3Xg0AloU+KqQCeOWR7
> 624PSv02gJtp3tYyLD20fC4=
> =6mYM
> -----END PGP SIGNATURE-----
>