Re: Overwrite a built in Lua function with an application specific version
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Overwrite a built in Lua function with an application specific version
- From: "Alex Queiroz" <asandroq@...>
- Date: 2007年6月13日 10:03:13 -0300
Hallo,
On 6/13/07, RJP Computing <rjpcomputing@gmail.com> wrote:
>
> _G.print = <insert your function here>
Thanks for the quick response.
I was hoping to do this in C through the C API. Can I get an example of
that?
lua_pushcfuntion(L, your_print);
lua_setglobal(L, "print");
Cheers,
--
-alex
http://www.ventonegro.org/