runtime_error.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 NOT_NORMAL_MSG_INFO "Don't get normal msg after function call."
  18. #define IMPORT_ERROR "Import-Error"
  19. #define IMPORT_OBJ_ERROR "Cannot creat an import object."
  20. #define INFIX_PROTECT "Infix-Protect"
  21. #define LITERAL_ERROR "Literal-Error"
  22. #define VARIABLE_ERROR "Variable-Error"
  23. #define CALL_ERROR "Call-Error"
  24. #define BRACKETS_FUNC_BODY_INFO "Brackets cannot get function body."
  25. #define PARENTHESES_FUNC_BODY_INFO "Parentheses cannot get function body."
  26. #define CURLY_FUNC_BODY_INFO "Curly cannot get function body."
  27. #define TYPE_ERROR "Type=Error"
  28. #define API_NOT_FOUND_INFO(name) ("Object API not found: " #name)
  29. #define API_RUN_ERROR "API-Run-Error"
  30. #define API_DONOT_GIVE(name) ("Object API don't give: " #name)
  31. #define SIGNAL_EXCEPTION "SIGNAL-Exception"
  32. #define SIGNAL_INT "SIGINT;"
  33. #define SIGNAL_TERM "SIGTERM;"
  34. #define SIGNAL_U1 "SIGU1;"
  35. #define SIGNAL_U2 "SIGU2;"
  36. #endif //AFUN_RUNTIME_ERROR_H