GodotGlobal.hpp 615 B

123456789101112131415161718192021222324252627282930
  1. #ifndef GODOT_GLOBAL_HPP
  2. #define GODOT_GLOBAL_HPP
  3. #if defined(_WIN32)
  4. # ifdef _GD_CPP_CORE_API_IMPL
  5. # define GD_CPP_CORE_API __declspec(dllexport)
  6. # else
  7. # define GD_CPP_CORE_API __declspec(dllimport)
  8. # endif
  9. #else
  10. # define GD_CPP_CORE_API
  11. #endif
  12. #include "String.hpp"
  13. namespace godot {
  14. class GD_CPP_CORE_API Godot {
  15. public:
  16. static void print(const String& message);
  17. static void print_warning(const String& description, const String& function, const String& file, int line);
  18. static void print_error(const String& description, const String& function, const String& file, int line);
  19. };
  20. }
  21. #endif