aboutsummaryrefslogtreecommitdiff
path: root/libxsde/xsde/cxx/sys-error.cxx
blob: 1b15c42c8b0ddf5a87d171ddc45c715ed3c79d3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// file      : xsde/cxx/sys-error.cxx
// copyright : Copyright (c) 2005-2011 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];
    }
  }
}