fix: renamed some symbols which were causing some compatibility problems

__FILE_NAME__ and GLFW_CONTEXT_DEBUG were causing problems in the CI
pipeline, thus I deemed them unreliable.
__FILE_NAME__ is not __FILE__ which is more universally used across
compilers.
and GLFW_CONTEXT_DEBUG has been replaced with GLFW_OPENGL_DEBUG_CONTEXT,
which is a legacy definition, which plays nicer on older platforms.
(like ubuntu)
This commit is contained in:
2025-06-08 00:59:42 +02:00
parent c77f711982
commit a7fb6136ea
2 changed files with 3 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ static GLFWwindow* win = NULL;
int window_init(void) {
#ifndef NDEBUG
glfwWindowHint(GLFW_CONTEXT_DEBUG, GLFW_TRUE);
glfwWindowHint(GLFW_OPENGL_DEBUG_CONTEXT, GLFW_TRUE);
#endif
// initialize the window

View File

@@ -13,8 +13,8 @@ static inline int assert_helper(int cond, char const* restrict fname, unsigned l
return !cond;
}
#define assert_true(expr) assert_helper(!!(expr), __FILE_NAME__, __LINE__, __func__, #expr) // evaluation expected to be true
#define assert_false(expr) assert_helper(!(expr), __FILE_NAME__, __LINE__, __func__, #expr) // evaluation expected to be false
#define assert_true(expr) assert_helper(!!(expr), __FILE__, __LINE__, __func__, #expr) // evaluation expected to be true
#define assert_false(expr) assert_helper(!(expr), __FILE__, __LINE__, __func__, #expr) // evaluation expected to be false
// contains the data for executing a single test
struct testdat {