diff options
Diffstat (limited to 'libxsde/xsde/cxx/sys-error.cxx')
-rw-r--r-- | libxsde/xsde/cxx/sys-error.cxx | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/libxsde/xsde/cxx/sys-error.cxx b/libxsde/xsde/cxx/sys-error.cxx new file mode 100644 index 0000000..5f6d33a --- /dev/null +++ b/libxsde/xsde/cxx/sys-error.cxx @@ -0,0 +1,27 @@ +// file : xsde/cxx/sys-error.cxx +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2005-2009 Code Synthesis Tools CC +// license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +#include <xsde/cxx/sys-error.hxx> + +namespace xsde +{ + namespace cxx + { + static const char* const text_[] = + { + "no error", + "no memory", + "open failed", + "read failed", + "write failed" + }; + + const char* sys_error:: + text (value v) + { + return text_[v]; + } + } +} |