[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- 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
> github
> 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.
--
http://blog.codingnow.com