runtime_error.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * 文件名: runtime_error.h
  3. * 目标: 定义aFunlang运行时错误信息
  4. */
  5. #ifndef AFUN_RUNTIME_ERROR_H
  6. #define AFUN_RUNTIME_ERROR_H
  7. #define SYNTAX_ERROR "Syntax-Error"
  8. #define SYNTAX_ERROR_INFO "Block syntax errors." /* block元素不足 */
  9. #define RUN_ERROR "Run-Error"
  10. #define NOT_CODE_INFO "Not code to run."
  11. #define FREE_VARSPACE_INFO "Free VarSpace error (VarSpace count error) ." /* 计数释放变量空间时产生错误 */
  12. #define PURE_EMBEDDED_INFO "Super pure function and super embedded function not to be used together."
  13. #define IMPLICIT_SET_INFO(name) "Implicit parameter (" #name ") cannot be set."
  14. #define FUNCBODY_ERROR_INFO "Dynamic function body is not filled." /* 执行函数体时, 获得func_body_dynamic类型的函数体 */
  15. #define RETURN_OBJ_NOT_FOUND_INFO "Sequential execution but unable to return the first execution result (The result does not exist)."
  16. #define NOT_MSG_INFO "Don't get msg after function call."
  17. #define INFIX_PROTECT "Infix-Protect"
  18. #define LITERAL_ERROR "Literal-Error"
  19. #define VARIABLE_ERROR "Variable-Error"
  20. #define CALL_ERRPR "Call-Error"
  21. #define BRACKETS_FUNC_BODY_INFO "Brackets cannot get function body."
  22. #define PARENTHESES_FUNC_BODY_INFO "Parentheses cannot get function body."
  23. #define CURLY_FUNC_BODY_INFO "Curly cannot get function body."
  24. #define TYPE_ERROR "Type=Error"
  25. #define API_NOT_FOUND_INFO(name) ("Object API not found: " #name)
  26. #define API_RUN_ERROR "API-Run-Error"
  27. #define API_DONOT_GIVE(name) ("Object API don't give: " #name)
  28. #endif //AFUN_RUNTIME_ERROR_H