2
0

it-init.h 752 B

123456789101112131415161718192021222324
  1. #ifndef AFUN_IT_INIT_H
  2. #define AFUN_IT_INIT_H
  3. #include "aFunlangExport.h"
  4. #include "aFuncore.h"
  5. namespace aFunit {
  6. struct aFunInitInfo : public aFuncore::InitInfo {
  7. aFuntool::Logger &afun_logger;
  8. AFUN_INLINE aFunInitInfo(const std::string &base_dir_,
  9. aFuntool::LogFactory &factor_,
  10. aFuntool::Logger &afun_logger_,
  11. aFuntool::Logger &core_logger_,
  12. aFuntool::Logger &sys_logger_);
  13. };
  14. AFUN_LANG_EXPORT extern aFuntool::Logger *aFunLogger;
  15. AFUN_LANG_EXPORT bool aFunInit(aFunInitInfo *info);
  16. AFUN_STATIC void setAFunLogger(aFuntool::Logger *log);
  17. }
  18. #include "it-init.inline.h"
  19. #endif //AFUN_IT_INIT_H