On 2013/05/31 18:40:29, Sam Clegg wrote:
> This whole file is a hack? Why?
Sorry, didn't remove this yet. I was planning on having Error be a typedef for
int, instead of its own struct.
The reason for having a struct here is to have the compiler catch errors --
though maybe it is worthwhile to keep (with a #define?)
#ifdef DEBUG
Error(int errno, const char *file, int line)
#define Error(x) Error(x, __FILE__, __LINE__)
#endif
We could actually develop an error class that on debug versions could provide us
useful information. This info could get logged to buffer and then periodically
scraped by the pepper thread, or even just available to via dubugging.
since we can't guaranty that we can safely printf due to reentrency/locking.
On 2013/06/07 21:48:43, noelallen1 wrote:
> #ifdef DEBUG
> Error(int errno, const char *file, int line)
> #define Error(x) Error(x, __FILE__, __LINE__)
> #endif
>
> We could actually develop an error class that on debug versions could provide
us
> useful information. This info could get logged to buffer and then
periodically
> scraped by the pepper thread, or even just available to via dubugging.
> since we can't guaranty that we can safely printf due to reentrency/locking.
Issue 16232016: [NaCl SDK] nacl_io: big refactor to return error value (errno).
(Closed)
Created 7 years, 6 months ago by binji
Modified 7 years, 6 months ago
Reviewers: noelallen1, Sam Clegg
Base URL: svn://svn.chromium.org/chrome/trunk/src
Comments: 65