lua-users home
lua-l archive

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


Ahh, no, you are not missing anything.  I did.  I missed the 0,0 in the
lua_call.  My bad, thanks!

--jnw

You said
>lua_dostring(L,"f()");
>
>is equivalent to
>
>lua_getglobal(L,"f");
>lua_call(L,0,0);
>
>and this last version is faster.

> >why not just #define lua_dostring??
>
> #define it bo be what?
> lua_dostring is real function, it does a lot of work.
> Am I missing something?
> --lhf