From dccc9bef56d51c5cad13c2568c5a3b97f637fd6e Mon Sep 17 00:00:00 2001 From: sanine Date: Mon, 22 Aug 2022 10:45:52 -0500 Subject: refactor: move drawing code into separate file --- src/gl/gl.test.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gl/gl.test.c') diff --git a/src/gl/gl.test.c b/src/gl/gl.test.c index bab8529..363036a 100644 --- a/src/gl/gl.test.c +++ b/src/gl/gl.test.c @@ -10,11 +10,15 @@ int mock_hs_throw_error_(lua_State *L, const char *str, ...); void mock_glfwTerminate_(); void mock_glBufferData_(int, size_t, const void *, int); +#define DUMMY_FUNCTION(...) + #define glfwInit mock_glfwInit_ #define hs_throw_error mock_hs_throw_error_ #define glfwTerminate mock_glfwTerminate_ #undef glBufferData #define glBufferData mock_glBufferData_ +#define setup_shader DUMMY_FUNCTION +#define setup_drawing DUMMY_FUNCTION #include "gl/gl.c" #undef glBufferData #undef glfwTerminate -- cgit v1.2.1