⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 errors.h

📁 cg编译器
💻 H
📖 第 1 页 / 共 2 页
字号:
/****************************************************************************\
Copyright (c) 2002, NVIDIA Corporation.

NVIDIA Corporation("NVIDIA") supplies this software to you in
consideration of your agreement to the following terms, and your use,
installation, modification or redistribution of this NVIDIA software
constitutes acceptance of these terms.  If you do not agree with these
terms, please do not use, install, modify or redistribute this NVIDIA
software.

In consideration of your agreement to abide by the following terms, and
subject to these terms, NVIDIA grants you a personal, non-exclusive
license, under NVIDIA's copyrights in this original NVIDIA software (the
"NVIDIA Software"), to use, reproduce, modify and redistribute the
NVIDIA Software, with or without modifications, in source and/or binary
forms; provided that if you redistribute the NVIDIA Software, you must
retain the copyright notice of NVIDIA, this notice and the following
text and disclaimers in all such redistributions of the NVIDIA Software.
Neither the name, trademarks, service marks nor logos of NVIDIA
Corporation may be used to endorse or promote products derived from the
NVIDIA Software without specific prior written permission from NVIDIA.
Except as expressly stated in this notice, no other rights or licenses
express or implied, are granted by NVIDIA herein, including but not
limited to any patent rights that may be infringed by your derivative
works or by other works in which the NVIDIA Software may be
incorporated. No hardware is licensed hereunder. 

THE NVIDIA SOFTWARE IS BEING PROVIDED ON AN "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED,
INCLUDING WITHOUT LIMITATION, WARRANTIES OR CONDITIONS OF TITLE,
NON-INFRINGEMENT, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
ITS USE AND OPERATION EITHER ALONE OR IN COMBINATION WITH OTHER
PRODUCTS.

IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT,
INCIDENTAL, EXEMPLARY, CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
TO, LOST PROFITS; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) OR ARISING IN ANY WAY
OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE
NVIDIA SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT,
TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF
NVIDIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\****************************************************************************/

//
// errors.h
//

#if !defined(__ERRORS_H)
#define __ERRORS_H 1

// Preprocessor related errors

#define ERROR___CPP_EOL_IN_STRING            101, "EOF/EOL inside preprocessor string"
#define ERROR___CPP_BIND_PRAGMA_ERROR        102, "error in #pragma bind arguments"
#define ERROR_SSSD_DUPLICATE_BINDING         103, "connector binding \"%s.%s\" previously defined at %s(%d)"
#define ERROR___CPP_UNKNOWN_DIRECTIVE        104, "Unknown cpp directive #%s"
#define ERROR___CPP_SYNTAX                   105, "Syntax error in #%s"
#define ERROR___CPP_MACRO_EOF                106, "Unexpected EOF in macro argument list"
#define ERROR___CPP_MACRO_TOOMANY            107, "Too many arguments to macro %s"
#define ERROR___CPP_MACRO_TOOFEW             108, "Not enough arguments to macro %s"

// Scanner errors

#define ERROR___EOF_IN_COMMENT               121, "EOF inside comment"
#define ERROR___FP_CONST_TOO_LONG            122, "floating point constant too long"
#define ERROR___FP_CONST_OVERFLOW            123, "floating point constant overflow"
#define ERROR___ERROR_IN_EXPONENT            124, "error in floating point exponent"
#define ERROR___INTEGER_CONST_OVERFLOW       125, "integer constant overflow"
#define ERROR___HEX_CONST_OVERFLOW           126, "hex constant overflow"
#define ERROR___ERROR_IN_HEX_CONSTANT        127, "error in hex constant"
#define ERROR___OCT_CONST_OVERFLOW           128, "octal constant overflow"

// Parser errors

#define ERROR_S_TYPE_NAME_EXPECTED           501, "type name expected at token \"%s\""

// Semantic errors

#define ERROR_S_INIT_STRUCT_MEMBER          1001, "initialization of struct members not allowed \"%s\""
#define ERROR_S_NAME_ALREADY_DEFINED        1002, "the name \"%s\" is already defined"
#define ERROR_S_VOID_TYPE_INVALID           1003, "void type not allowed \"%s\""
#define ERROR_S_IN_OUT_PARAMS_ONLY          1004, "in and out only apply to formal parameters \"%s\""
#define ERROR_S_INLINE_FOR_FUN              1005, "inline modifier only for functions \"%s\""
#define ERROR_S_UNSIZED_ARRAY               1006, "unsized array type not allowed \"%s\""
#define ERROR___VOID_NOT_ONLY_PARAM         1007, "void must be only parameter"
#define ERROR_S_UNDEFINED_VAR               1008, "undefined variable \"%s\""
#define ERROR_SS_NOT_A_MEMBER               1009, "\"%s\" is not member of struct/category \"%s\""
#define ERROR_S_LEFT_EXPR_NOT_STRUCT_ARRAY  1010, "expression left of .\"%s\" is not a struct or array"
#define ERROR___INDEX_OF_NON_ARRAY          1011, "cannot index a non-array value"
#define ERROR_S_ABSTRACT_NOT_ALLOWED        1012, "abstract parameters not allowed in function definition \"%s\""
#define ERROR_S_FUN_ALREADY_DEFINED         1013, "function \"%s\" is already defined"
#define ERROR_S_NOT_A_FUN                   1014, "\"%s\" is not a function"
#define ERROR___VOID_FUN_RETURNS_VALUE      1015, "void function cannot return a value"
#define ERROR___RETURN_EXPR_INCOMPAT        1016, "expression type incompatible with function return type"
#define ERROR_S_PARAM_NAME_TWICE            1017, "parameter name \"%s\" appears twice in function declaration"
#define ERROR___BOOL_EXPR_EXPECTED          1018, "Boolean expression expected"
#define ERROR___SCALAR_BOOL_EXPR_EXPECTED   1019, "scalar Boolean expression expected"
#define ERROR_S_INVALID_OPERANDS            1020, "invalid operands to \"%s\""
#define ERROR_S_OPERANDS_NOT_INTEGRAL       1021, "operands to \"%s\" must be integral"
#define ERROR_S_OPERANDS_NOT_NUMERIC        1022, "operands to \"%s\" must be numeric"
#define ERROR_S_OPERANDS_NOT_BOOLEAN        1023, "operands to \"%s\" must be Boolean"
#define ERROR_S_OPERANDS_NOT_SCALAR_VECTOR  1024, "operands to \"%s\" must be scalar or vector"
#define ERROR_S_OPERANDS_NOT_MATRIX         1025, "expected matrix operand to \"%s\""
#define ERROR_S_SCALAR_OP_VECTOR_INVALID    1026, "\"scalar %s vector\" not allowed"
#define ERROR_S_VECTOR_OP_SCALAR_INVALID    1027, "\"vector %s scalar\" not allowed"
#define ERROR_S_VECTOR_OPERANDS_DIFF_LEN    1028, "vector operands to \"%s\" must be of equal length"
#define ERROR_S_VECTOR_MATRIX_MISMATCH      1029, "length of vector must equal number of rows in matrix in \"V %s M\""
#define ERROR_S_MATRIX_VECTOR_MISMATCH      1030, "number of columns in matrix must equal length of vector in \"M %s V\""
#define ERROR_S_SWIZZLE_MASK_EL_MISSING     1031, "swizzle mask element not present in operand \"%s\""
#define ERROR___MIXED_NUM_NONNUM_VECT_CNSTR 1032, "cannot mix numeric and non numeric elements in constructed vectors"
#define ERROR___INVALID_CAST                1033, "cast not allowed"
#define ERROR___ASSIGN_TO_NON_LVALUE        1034, "assignment to non-lvalue"
#define ERROR___ASSIGN_INCOMPATIBLE_TYPES   1035, "assignment of incompatible types"
#define ERROR___ASSIGN_TO_CONST_VALUE       1036, "assign to const variable"
#define ERROR___ASSIGN_VARYING_TO_UNIFORM   1037, "assignment of varying value to uniform variable"
#define ERROR___MASKED_ASSIGN_TO_VAR        1036, "masked assignment only allowed on vectors"
#define ERROR_S_MASKED_ASSIGN_NON_EXISTENT  1037, "masked assignment to non-existent element(s) \"%s\""
#define ERROR_S_CONFLICTING_DECLARATION     1038, "declaration of \"%s\" conflicts with previous declaration"
#define ERROR___CONST_OUT_INVALID           1039, "const and out qualifiers not allowed together"
#define ERROR___CONFLICTING_DOMAIN          1040, "domain declaration conflicts with previous declaration"
#define ERROR___REPEATED_TYPE_ATTRIB        1041, "repeated type attribite"
#define ERROR_S_TAG_IS_NOT_A_STRUCT         1042, "tag \"%s\" is not a struct"
#define ERROR___DIMENSION_LT_1              1043, "size of dimension cannot be less than 1"
#define ERROR___ARRAY_OF_VOID               1044, "array of void not allowed"
#define ERROR___ARRAY_OF_FUNS               1045, "array of functions not allowed"
#define ERROR_D_EXCEEDS_MAX_DIMS            1046, "array declaration exceeds %d dimensions"
#define ERROR_SSD_STRUCT_ALREADY_DEFINED    1047, "struct \"%s\" previously defined at %s(%d)"
#define ERROR_CS_INVALID_SWIZZLE_CHAR       1048, "invalid character '%c' in swizzle \"%s\""
#define ERROR_S_SWIZZLE_TOO_LONG            1049, "swizzle too long \"%s\""
#define ERROR_CS_INVALID_CHAR_IN_MASK       1050, "invalid character '%c' in write mask \"%s\""
#define ERROR_CS_DUPLICATE_CHAR_IN_MASK     1051, "duplicate character '%c' in write mask \"%s\""
#define ERROR_S_OPERANDS_HAVE_SIDE_EFFECTS  1052, "operands to \"%s\" can't have side effects"
#define ERROR_S_INVALID_CONDITION_OPERAND   1053, "invalid Boolean condition expression"
#define ERROR_S_INIT_NON_VARIABLE           1054, "initialization of non-variable \"%s\""

#define ERROR___INVALID_INITIALIZATION      1056, "invalid initialization"
#define ERROR___TOO_LITTLE_DATA             1057, "too little data in initialization"
#define ERROR___TOO_MUCH_DATA               1058, "too much data in initialization"
#define ERROR___NON_CONST_INITIALIZATION    1059, "non constant expression in initialization"
#define ERROR___INCOMPAT_TYPE_INIT          1060, "incompatible types in initialization"
#define ERROR_S_INIT_EXTERN                 1061, "initialization of extern variable \"%s\""
#define ERROR___STORAGE_SPECIFIED_TWICE     1062, "storage class specified twice"
#define ERROR___CONFLICTING_STORAGE         1063, "storage class conflicts with previous specification"
#define ERROR_S_STORAGE_NOT_ALLOWED         1064, "storage class specifier not allowed"
#define ERROR_S_STORAGE_NOT_ALLOWED_TYPEDEF 1065, "storage class specifier not allowed in typedef"
#define ERROR___INVALID_TYPE_FUNCTION       1066, "invalid type in type constructor"
#define ERROR___TOO_LITTLE_DATA_TYPE_FUN    1067, "too little data in type constructor"
#define ERROR___TOO_MUCH_DATA_TYPE_FUN      1068, "too much data in type constructor"

#define ERROR_S_AMBIGUOUS_FUN_REFERENCE     1101, "ambiguous overloaded function reference \"%s\""
#define ERROR_D_INCOMPATIBLE_PARAMETER      1102, "incompatible type for parameter #%d"
#define ERROR___TOO_FEW_PARAMS              1103, "too few parameters in function call"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -