lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


if you are using debian based os, just use apt-get source to get the
source code of lua5
and in the package, there's example for calling c module from lua and
calling lua from c

On Thu, Jan 20, 2011 at 12:02 PM, Steve Litt <slitt@troubleshooters.com> wrote:
> On Wednesday 19 January 2011 20:56:18 HyperHacker wrote:
>
>> I usually have a "bootloader" C program that creates a Lua state and
>> exposes some internals to it and lets it go nuts.
>
>
>> A lot of my programs
>> however are a Lua script that loads a bunch of modules (some of which
>> are written in C); it's not infeasible that a game engine could be
>> done that way.
>
> I'm glad you responded. In my research I've found no examples of how to start
> in Lua and load C modules, nor any documentation of same. Do you know of a
> trivial "hello world" application of calling C from Lua for Lua 5.1?
>
> Thanks
>
> SteveT
>
> Steve Litt
> Recession Relief Package
> http://www.recession-relief.US
> Twitter: http://www.twitter.com/stevelitt
>
>
>



-- 
welcom to gtalk me
http://hi.baidu.com/jyf1987