mirror of
https://github.com/cc65/cc65.git
synced 2025-08-08 06:25:17 +00:00
Use enum, declare count of errors
git-svn-id: svn://svn.cc65.org/cc65/trunk@3124 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -6,10 +6,10 @@
|
|||||||
;* */
|
;* */
|
||||||
;* */
|
;* */
|
||||||
;* */
|
;* */
|
||||||
;* (C) 2002 Ullrich von Bassewitz */
|
;* (C) 2002-2004 Ullrich von Bassewitz */
|
||||||
;* Wacholderweg 14 */
|
;* R<EFBFBD>merstra<EFBFBD>e 52 */
|
||||||
;* D-70597 Stuttgart */
|
;* D-70794 Filderstadt */
|
||||||
;* EMail: uz@musoftware.de */
|
;* EMail: uz@cc65.org */
|
||||||
;* */
|
;* */
|
||||||
;* */
|
;* */
|
||||||
;* This software is provided 'as-is', without any expressed or implied */
|
;* This software is provided 'as-is', without any expressed or implied */
|
||||||
@@ -34,12 +34,15 @@
|
|||||||
|
|
||||||
|
|
||||||
; Error constants
|
; Error constants
|
||||||
TGI_ERR_OK = 0 ; No error
|
.enum
|
||||||
TGI_ERR_NO_DRIVER = 1 ; No driver available
|
TGI_ERR_OK ; No error
|
||||||
TGI_ERR_LOAD_ERROR = 2 ; Error loading driver
|
TGI_ERR_NO_DRIVER ; No driver available
|
||||||
TGI_ERR_INV_DRIVER = 3 ; Invalid driver
|
TGI_ERR_LOAD_ERROR ; Error loading driver
|
||||||
TGI_ERR_INV_MODE = 4 ; Mode not supported by driver
|
TGI_ERR_INV_DRIVER ; Invalid driver
|
||||||
TGI_ERR_INV_ARG = 5 ; Invalid function argument
|
TGI_ERR_INV_MODE ; Mode not supported by driver
|
||||||
TGI_ERR_INV_FUNC = 6 ; Function not supported
|
TGI_ERR_INV_ARG ; Invalid function argument
|
||||||
|
TGI_ERR_INV_FUNC ; Function not supported
|
||||||
|
|
||||||
|
TGI_ERR_COUNT ; Special: Number of error messages
|
||||||
|
.endenum
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user