 Chromium Code Reviews
 Chromium Code Reviews Issue 13699004:
  first draft of error checking / reporting API  (Closed) 
  Base URL: https://skia.googlecode.com/svn/trunk
    
  
    Issue 13699004:
  first draft of error checking / reporting API  (Closed) 
  Base URL: https://skia.googlecode.com/svn/trunk| Index: src/core/SkErrorInternals.h | 
| diff --git a/src/core/SkErrorInternals.h b/src/core/SkErrorInternals.h | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..4d916bfea16a1bfaeadbb2599f7c789213d9e417 | 
| --- /dev/null | 
| +++ b/src/core/SkErrorInternals.h | 
| @@ -0,0 +1,27 @@ | 
| + | 
| +/* | 
| + * Copyright 2013 Google Inc. | 
| + * | 
| + * Use of this source code is governed by a BSD-style license that can be | 
| + * found in the LICENSE file. | 
| + */ | 
| + | 
| +#ifndef SkErrorInternals_DEFINED | 
| +#define SkErrorInternals_DEFINED | 
| + | 
| +#include "SkError.h" | 
| + | 
| +class SkErrorInternals { | 
| +public: | 
| 
scroggo
2013/04/08 19:24:53
Minor nit: public should be preceded by a newline.
 
humper
2013/04/08 19:43:23
Done.
 | 
| + static void Init(); | 
| + static void ClearError(); | 
| + static void SetError(SkError code, const char *fmt, ...); | 
| + static SkError GetLastError(); | 
| + static const char *GetLastErrorString(); | 
| + static void SetErrorCallback(SkErrorCallbackFunction cb, void *context); | 
| + static void DefaultErrorCallback(SkError code, void *context); | 
| +}; | 
| + | 
| + | 
| + | 
| +#endif /* SkErrorInternals_DEFINED */ |