39 auto& lua = entt::locator<sol::state>::value();
52 lua.set_function(
"galaxy_log_physfs_check", sol::resolve<
bool(
const int)>(
log::physfs_check));
#define GALAXY_INFO
Log.hpp galaxy.
#define GALAXY_LOG(level, msg,...)
std::vector< std::string > gl_get_all_errors() noexcept
Returns all GL errors on stack.
void gl_add_error(const unsigned int source, const unsigned int type, const unsigned int id, const unsigned int severity, const int length, const char *buf) noexcept
Insert a message into the OpenGL debug stack.
std::string gl_errcode_as_string(const int code) noexcept
Convert a GL error code to a string.
bool physfs_check(const int code) noexcept
Call a physfs function with error handling and logs a message for you.
void inject_logging()
Injects logging into Lua.
void log_wrapper(LogLevel error_level, std::string_view message)
LogLevel
Used to determine filtering and colouring of log messages.
@ WARNING
Warning Log Level.