[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: ltask - A multi tasking library for lua
- From: 云风 Cloud Wu <cloudwu@...>
- Date: Fri, 1 May 2015 21:53:57 +0800
> In my experience malloc does fail and quite often when running on a system
> with constrained memory. I see a lot of code with unchecked mallocs on
> and I don't like it. If it's too much effort to check return values why not
> just wrapper malloc/calloc so OOM failures set a message and exit cleanly?
I would like implement the main function first, and then write the
details about these checks.