[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: TinyCC Interface for LUA
- From: "Jason P" <ahq_ranger@...>
- Date: Sat, 08 Nov 2003 22:37:57 -0500
I've uploaded the initial version of my TinyCC Interface for LUA to
http://lua.greyearth.com
its functional, but primitive. The TIL_Tester.exe is an installer for the
test application and
gives you a little .lua program to play with if interested.
I'm wondering now- which way to go with this module. There is a subtle
symbol issue. When
using TinyCC with C, you can just add remove C symbols, but when working
with LUA, a
buffer has to be introduced for values. So far the symbols work like so:
ti.AddSymbol("MySymbol","MyString")
ti.AddSymbol("MyNumberSymbol",1.23)
MyString = ti.GetString("MySymbol")
MyNumber = ti.GetNumber("MyNumberSymbol")
Should I add support for passing table arrays of numbers and strings? or
even build in a
way for the C code to access tables (would be a custom C struct holding the
LUA table)...
oh- and every time you add a symbol, there is currently a memory leak.
JP (jp@greyearth.com)
_________________________________________________________________
MSN Messenger with backgrounds, emoticons and more.
http://www.msnmessenger-download.com/tracking/cdp_customize