[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Embbeding LUA/multithread
- From: erik@... (Erik Hougaard)
- Date: Mon, 15 Jan 2001 13:18:05 +0100
----- Original Message -----
> ----- Original Message -----
> > How about this (for Lua 4.0):
> >
> > Lua:
> > function hello() print "Hello Beginner" end
> >
> > C:
> > lua_getglobal(L,"hello");
> > lua_call(L,0,0);
>
> Even shorter:
>
> lua_dostring(L,"print 'Hello Beginner'");
>
> /Erik
Ups... Try :
lua_dostring(L,"hello()");
...
/e