michael@0: michael@0: /* michael@0: * Copyright 2013 Google Inc. michael@0: * michael@0: * Use of this source code is governed by a BSD-style license that can be michael@0: * found in the LICENSE file. michael@0: */ michael@0: michael@0: #ifndef SkErrorInternals_DEFINED michael@0: #define SkErrorInternals_DEFINED michael@0: michael@0: #include "SkError.h" michael@0: michael@0: class SkErrorInternals { michael@0: michael@0: public: michael@0: static void ClearError(); michael@0: static void SetError(SkError code, const char *fmt, ...); michael@0: static SkError GetLastError(); michael@0: static const char *GetLastErrorString(); michael@0: static void SetErrorCallback(SkErrorCallbackFunction cb, void *context); michael@0: static void DefaultErrorCallback(SkError code, void *context); michael@0: }; michael@0: michael@0: michael@0: michael@0: #endif /* SkErrorInternals_DEFINED */