From 697414b42a36a0c529bd1c95d82c81a09bfb0ec9 Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: 周二, 04 12月 2012 19:08:55 +0800 Subject: [PATCH] Update README - syntax correction and cleanup --- scpi/scpi_error.h | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/scpi/scpi_error.h b/scpi/scpi_error.h index 9643054..5d8315e 100644 --- a/scpi/scpi_error.h +++ b/scpi/scpi_error.h @@ -37,13 +37,17 @@ #ifndef SCPI_ERROR_H #define SCPI_ERROR_H +#include "scpi_types.h" + #ifdef __cplusplus extern "C" { #endif - + + void SCPI_ErrorInit(scpi_t * context); void SCPI_ErrorClear(scpi_t * context); int16_t SCPI_ErrorPop(scpi_t * context); void SCPI_ErrorPush(scpi_t * context, int16_t err); + int32_t SCPI_ErrorCount(scpi_t * context); const char * SCPI_ErrorTranslate(int16_t err); #define SCPI_ERROR_SYNTAX -102 @@ -54,6 +58,8 @@ #define SCPI_ERROR_INVALID_SUFFIX -131 #define SCPI_ERROR_SUFFIX_NOT_ALLOWED -138 +#define SCPI_ERROR_EXECUTION_ERROR -200 + #ifdef __cplusplus } #endif -- Gitblit v1.9.1