?? errors.h
字號:
#define ERROR___TOO_MANY_PARAMS 1104, "too many parameters in function call"
#define ERROR___CALL_OF_NON_FUNCTION 1105, "cannot call a non-function"
#define ERROR_S_OVERLOAD_DIFF_ONLY_QUALS 1106, "overloaded function declaration \"%s\" differs only in parameter qualifiers"
#define ERROR_S_OVERLOAD_DIFF_ONLY_RETURN 1107, "overloaded function declaration \"%s\" differs only in return type"
#define ERROR_S_NO_STATEMENTS 1108, "function \"%s\" has no statements"
#define ERROR_S_FUN_TYPE_INVALID 1109, "function type not allowed for parameter \"%s\""
#define ERROR_S_FUNCTION_HAS_NO_RETURN 1110, "function \"%s\" has no return statement"
#define ERROR_D_OUT_PARAM_NOT_LVALUE 1111, "non-lvalue actual parameter #%d cannot be out parameter"
#define ERROR_D_OUT_PARAM_IS_CONST 1112, "const qualified actual parameter #%d cannot be out parameter"
#define ERROR_D_OUT_PARAM_NOT_SAME_TYPE 1113, "actual parameter #%d must be same type as formal out parameter"
#define ERROR_S_NON_UNIFORM_PARAM_INIT 1114, "only uniform parameters can be initialized \"%s\""
#define ERROR_S_NO_COMPAT_OVERLOADED_FUN 1115, "unable to find compatible overloaded function \"%s\""
#define ERROR___QSTN_SCALAR_3RD_OPND_EXPECTED 1201, "expected scalar third operand to \"? :\""
#define ERROR___QSTN_VECTOR_3RD_OPND_EXPECTED 1202, "expected vector third operand to \"? :\""
#define ERROR___QSTN_VECTOR_23_OPNDS_EXPECTED 1203, "expected vector second and third operands to \"? :\""
#define ERROR___QSTN_23_OPNDS_INCOMPAT 1204, "incompatible second and third operands to \"? :\""
#define ERROR___QSTN_23_OPNDS_INVALID 1205, "invalid second and third operands to \"? :\""
#define ERROR___QSTN_INVALID_1ST_OPERAND 1206, "invalid first operand to \"? :\""
#define ERROR___QSTN_1ST_OPERAND_NOT_SCALAR 1207, "expected scalar first operand to \"? :\""
#define ERROR___REF_TO_VAR_WITH_NO_VALUE 1301, "use of variable with no defined value"
// Errors detected when compiling
#define ERROR___NO_PROGRAM 3001, "no program defined"
#define ERROR_S_CALL_UNDEF_FUN 3002, "call to undefined function \"%s\""
#define ERROR___NO_ERROR 3003, "no error detected since previous error token"
// Non-supported language features
#define ERROR_S_UNSUPPORTED_OPERATOR 4001, "the C operator \"%s\" is not defined in this language"
#define ERROR_S_UNEXPECTED_COLON 4002, "unexpected \": %s\""
// Profile specific limitations globally shared by any profile
#define ERROR_S_CONNECTOR_TYPE_INVALID 5001, "connector type \"%s\" is not valid for this profile"
#define ERROR_S_CONNECT_FOR_OUTPUT 5002, "connector type \"%s\" only valid as output for this profile"
#define ERROR_S_CONNECT_FOR_INPUT 5003, "connector type \"%s\" only valid as input for this profile"
#define ERROR_S_INTERNAL_FOR_FUN 5004, "__internal modifier only for functions \"%s\""
#define ERROR_S_RECURSION 5005, "recursive call to function \"%s\""
#define ERROR___PACKED_DIM_EXCEEDS_4 5006, "size of packed dimension cannot exceed 4"
#define ERROR___LOW_DIM_UNSPECIFIED 5007, "only size of greatest dimension can be unspecified"
#define ERROR___NUM_DIMS_EXCEEDS_3 5008, "number of dimensions of array cannot exceed 3"
#define ERROR_S_INT_NOT_ALLOWED 5009, "type \"int\" definitions not allowed \"%s\""
#define ERROR___IF_NOT_SUPPORTED 5010, "profile does not support \"if\" statements"
#define ERROR___WHILE_NOT_SUPPORTED 5011, "profile does not support \"while\" statements"
#define ERROR___DO_NOT_SUPPORTED 5012, "profile does not support \"do\" statements"
#define ERROR___FOR_NOT_SUPPORTED 5013, "profile does not support \"for\" statements"
#define ERROR___DISCARD_NOT_SUPPORTED 5014, "profile does not support \"discard\" statements"
#define ERROR___VECTOR_EXPR_LEN_GR_4 5015, "length of vector expressions cannot exceed 4"
#define ERROR_S_VECTOR_OPERAND_GR_4 5016, "length of vector operands to \"%s\" cannot exceed 4"
#define ERROR_S_MATRIX_OPERAND_GR_4 5017, "dimensions of matrix operands to \"%s\" cannot exceed 4"
#define ERROR___CONSTRUCTER_VECTOR_LEN_GR_4 5018, "length of constructed vectors cannot exceed 4"
#define ERROR_S_ONE_PROGRAM 5019, "one program per compilation, program \"%s\" also defined"
#define ERROR_C_UNSUPPORTED_FP_SUFFIX 5020, "profile does not support float constant suffix \"%c\""
#define ERROR_S_PROGRAM_PARAM_NOT_UNIFORM 5028, "non-connector program parameter \"%s\" must have uniform domain"
#define ERROR_S_PROGRAM_MUST_RETURN_STRUCT 5029, "program \"%s\" must return a struct"
//#define ERROR_SS_CMEMBER_NOT_SCALAR_VECTOR 5032, "connector member \"%s.%s\" is not a scalar or vector"
//#define ERROR_SS_CMEMBER_NOT_NUMERIC 5033, "connector member \".%s%s\" is not a numeric type"
//#define ERROR_SS_CMEMBER_SIZE_TOO_LARGE 5034, "connector member \".%s%s\" has more elements than bound register does"
#define ERROR_S_CMEMBER_NOT_WRITABLE 5035, "connector member \"%s\" is not writable in this profile"
#define ERROR_S_CMEMBER_NOT_READABLE 5036, "connector member \"%s\" is not readable in this profile"
#define ERROR_S_CMEMBER_NOT_VISIBLE 5037, "connector member \"%s\" is not visible in this profile"
//#define ERROR_S_CMEMBER_BINDING_ERROR 5038, "cannot locate suitable register to bind connector member \"%s\""
//#define ERROR_SSS_CMEMBER_RESERVED_NAME 5039, "reserved connector member \"%s.%s\" cannot be bound to register \"%s\""
#define ERROR_S_INCOMPATIBLE_BIND_DIRECTIVE 5040, "type of parameter \"%s\" incompatible with bind directive"
#define ERROR_S_PARAMETER_BINDING_ERROR 5041, "cannot locate suitable resource to bind parameter \"%s\""
#define ERROR___RETURN_NOT_LAST 5042, "profile requires \"return\" statement to be last statement in function"
#define ERROR___ARRAY_INDEX_NOT_CONSTANT 5043, "profile requires index expression to be compile-time constant"
#define ERROR___MATRIX_NOT_SIMPLE 5044, "profile requires matrices to be simple variables"
#define ERROR_S_ILLEGAL_PARAM_TO_MAIN 5045, "illegal parameter to main \"%s\""
#define ERROR_S_MAIN_PARAMS_CANT_BE_INOUT 5046, "parameters to main cannot be in out \"%s\""
#define ERROR_S_UNIF_BIND_TO_NON_UNIF_VAR 5047, "non-uniform variable bound to uniform register in bind directive \"%s\""
#define ERROR_S_NON_UNIF_BIND_TO_UNIF_VAR 5048, "uniform variable bound to non-uniform register in bind directive \"%s\""
#define ERROR_S_ILLEGAL_TYPE_UNIFORM_VAR 5049, "type not allowed for uniform variables \"%s\""
#define ERROR_S_UNPACKED_ARRAY 5050, "profile does not support arrays of non-packed types \"%s\""
//#define ERROR_S_SEMANTICS_CANT_HAVE_INDEX 5101, "semantics attribute \"%s\" cannot have a numeric index"
#define ERROR_S_SEMANTICS_INDEX_TOO_BIG 5102, "semantics attribute \"%s\" has too big of a numeric index"
#define ERROR_S_STATIC_CANT_HAVE_SEMANTICS 5103, "static variables cannot have semantics \"%s\""
#define ERROR_S_NO_LOCAL_SEMANTICS 5104, "local variables cannot have semantics \"%s\""
#define ERROR_S_NON_STATIC_SEM_NOT_UNIFORM 5105, "non-static global variables with semantics must be declared uniform \"%s\""
#define ERROR_S_SEMANTICS_NON_VARIABLE 5106, "semantics not allowed on non-variable \"%s\""
#define ERROR_S_SEM_VAR_NOT_SCALAR_VECTOR 5107, "semantics not allowed on variable which is not a scalar or vector \"%s\""
#define ERROR_S_UNKNOWN_SEMANTICS 5108, "unknown semantics specified \"%s\""
#define ERROR_S_SEMANTIC_DOMAIN_CONFLICT 5109, "variable domain conflicts with semantics \"%s\""
#define ERROR_S_UNIFORM_ARG_CANT_BE_OUT 5110, "parameters with uniform domain cannot be out parameters \"%s\""
#define ERROR_S_OUT_QUALIFIER_IN_SEMANTIC 5111, "out qualifier cannot be used with in sematics \"%s\""
#define ERROR_S_IN_QUALIFIER_OUT_SEMANTIC 5112, "in qualifier cannot be used with out sematics \"%s\""
#define ERROR_S_MAIN_ARG_NO_SEM_NOT_UNIFORM 5113, "parameters to main with no semantics must be uniform domain \"%s\""
#define ERROR_S_NESTED_SEMANTIC_STRUCT 5115, "nested structs cannot have semantics \"%s\""
#define ERROR_S_SEMANTIC_NOT_DEFINED_VOUT 5116, "no varying output semantics defined that match variable/member name \"%s\""
#define ERROR_S_NON_STATIC_GLOBAL_TYPE_ERR 5117, "unsupported type for uniform semantics; not allowed for non-static globals \"%s\""
#define ERROR_S_SEMANTIC_TYPE_CONFLICT 5118, "variable type conflicts with semantics \"%s\""
#define ERROR_SS_VAR_SEMANTIC_NOT_VISIBLE 5119, "variable/member \"%s\" has semantic \"%s\" which is not visible in this profile"
#define ERROR_S_NO_TEXUNITS_AVAILABLE 5120, "no texture units left to bind to \"%s\""
#define ERROR_S_INVALID_INTERNAL_FUNCTION 5201, "invalid internal function declaration for \"%s\""
// Profile specific features not yet implemented
#define ERROR___IF_NOT_YET_IMPLEMENTED 5501, "\"if\" statements not yet implemented"
#define ERROR___VECTOR_CONSTR_NOT_NUM_BOOL 5502, "constructed vector requires numeric or bool elements"
#define ERROR___VECTOR_CONSTR_NOT_SCALAR 5503, "non-scalar not allowed in vector constructor"
#define ERROR_S_STRUCT_PARAM_NOT_YET 5504, "struct parameters not yet implemented \"%s\""
#define ERROR_S_CONNECT_PARAM_NOT_YET 5505, "connector parameters not yet implemented \"%s\""
#define ERROR___ARRAY2_INIT_NOT_DONE 5507, "initialization of arrays with more than 1 dimension not yet implemented"
#define ERROR_S_UNSUPPORTED_PROFILE_OP 5508, "the operator \"%s\" is not supported by this profile"
// Numbers 6000 to 6999 are reserved for profile specific messages
// Warnings:
#define WARNING___QUALIFIER_SPECIFIED_TWICE 7001, "qualifier specified twice"
#define WARNING___DOMAIN_SPECIFIED_TWICE 7002, "domain specified twice"
#define WARNING_S_VOID_FUN_HAS_NO_OUT_ARGS 7003, "void function \"%s\" has no out parameters"
#define WARNING_S_UNBOUND_CONNECTOR_MEMBER 7004, "unbound connector member \"%s\""
#define WARNING_S_CMEMBER_NOT_WRITTEN 7005, "no value written to connector member \"%s\""
#define WARNING_S_UNINITIALIZED_VAR_USED 7006, "uninitialized variable \"%s\" used"
#define WARNING_S_FORWARD_SEMANTICS_IGNORED 7007, "\"%s\" semantics in forward declaration ignored"
#define WARNING_S_SEMANTICS_AND_BINDING 7008, "non-uniform variable has both semantics and binding \"%s\""
#define WARNING_S_CANT_BIND_UNIFORM_VAR 7009, "cannot locate default uniform binding for \"%s\""
// CPP wornings
#define WARNING___CPP_MACRO_REDEFINED 7101, "Macro %s redefined"
#define WARNING___CPP_IF_MISMATCH 7102, "unmatched #%s"
// "Helper" messages, trying to explain common errors
// Internal compiler error messages
#define ERROR_S_TYPE_NAME_NOT_FOUND 9001, "type name not found \"%s\""
#define ERROR_S_NAME_NOT_A_TYPE 9002, "name is not a type name \"%s\""
#define ERROR_S_NO_CODE_GENERATOR 9003, "missing code generator for program profile \"%s\""
#define ERROR_S_SYMBOL_NOT_FUNCTION 9004, "symbol not function \"%s\""
#define ERROR_S_SYMBOL_TYPE_NOT_FUNCTION 9005, "symbol's type category not function \"%s\""
#define ERROR___TYPE_NOT_ARRAY 9006, "type not an array"
#define ERROR_S_NO_CODE_HEADER 9007, "missing code header function for program profile \"%s\""
#define ERROR_S_MALLOC_FAILED 9008, "malloc failed in \"%s\""
#define ERROR___NO_MATRIX_DECONSTRUCTION 9009, "matrix deconstruction not supported"
// Misc. notices
#define NOTICE_SSS_CMEMBER_ALLOCATED 9501, "connector member \"%s.%s\" allocated to register \"%s\""
#endif // !defined(__ERRORS_H)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -