A 2D tile-based sandbox game.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include <string>
  3. #include <ostream>
  4. #include <stdio.h>
  5. #include "util.h"
  6. namespace Swan {
  7. namespace OS {
  8. bool isTTY(FILE *f);
  9. class Dynlib: NonCopyable {
  10. public:
  11. Dynlib(const std::string &path);
  12. Dynlib(Dynlib &&dl) noexcept;
  13. ~Dynlib();
  14. Dynlib &operator=(Dynlib &&dl) noexcept;
  15. template<typename T> T get(const std::string &name) { return (T)getVoid(name); }
  16. void *getVoid(const std::string &name);
  17. private:
  18. void *handle_;
  19. };
  20. }
  21. }