[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: print and lua conf
- From: Wesley Smith <wesley.hoke@...>
- Date: Mon, 16 Feb 2009 19:41:39 -0800
On Mon, Feb 16, 2009 at 7:39 PM, Luiz Henrique de Figueiredo
>> I was wondering what possible issues and solutions might be to change
>> the FILE pointer Lua uses for functions like print and error at the
>> configuration or runtime startup level might be.
> Lua 5.2 will provide a macro in luaconf.h for outputting strings via print.
> The default will be this:
> @@ luai_writestring defines how 'print' prints its results.
> ** CHANGE it if your system does not have a useful stdout.
> #define luai_writestring(s,l) fwrite((s), sizeof(char), (l), stdout)