shithub: rewise

ref: caba3c6ab89bf631a0c12eab72d51d0353e0f782
dir: /src/errors.h/

View raw version
/* This file is part of REWise.
 *
 * REWise is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * REWise is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <https://www.gnu.org/licenses/>.
 */

#ifndef H_REWISE_ERRORS
#define H_REWISE_ERRORS

typedef enum {
  REWERR_OK         = 0,  // Success
  REWERR_EOF        = 1,  // End of file
  REWERR_NOOPT      = 2,  // Invalid operation (WiseScript parse)
  REWERR_INVALDAT   = 3,  // Invalid data (WiseScript parse)
  REWERR_ERRNO      = 4   // Check errno
} REWError;

#endif