init.h 904 B

123456789101112131415161718192021222324252627282930
  1. #ifndef AFUN_INIT_H
  2. #define AFUN_INIT_H
  3. #include "aFunlangExport.h"
  4. #include "aFuncore.h"
  5. #include "aFuncode.h"
  6. #include "aFuntool.h"
  7. namespace aFunit {
  8. struct InitInfo {
  9. aFuntool::LogFactory &factor;
  10. aFuntool::Logger &core_logger;
  11. aFuntool::Logger &code_logger;
  12. aFuntool::Logger &sys_logger;
  13. aFuntool::Logger &afun_logger;
  14. AFUN_INLINE InitInfo(aFuntool::LogFactory &factor_,
  15. aFuntool::Logger &afun_logger_,
  16. aFuntool::Logger &core_logger_,
  17. aFuntool::Logger &code_logger_,
  18. aFuntool::Logger &sys_logger_);
  19. };
  20. AFUN_LANG_EXPORT extern aFuntool::Logger *aFunLogger;
  21. AFUN_LANG_EXPORT bool aFunInit(InitInfo *info);
  22. AFUN_STATIC void setAFunLogger(aFuntool::Logger *log);
  23. }
  24. #include "init.inline.h"
  25. #endif //AFUN_INIT_H