diff options
author | sanine <sanine.not@pm.me> | 2022-08-22 10:45:52 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-08-22 10:45:52 -0500 |
commit | dccc9bef56d51c5cad13c2568c5a3b97f637fd6e (patch) | |
tree | c4c5aaf57e5f76c44fc1c6943c04a5dfd7638c96 /src/gl/gl.test.c | |
parent | 65ad3a58adcfe21690f379ab894a104b3852e3e9 (diff) |
refactor: move drawing code into separate file
Diffstat (limited to 'src/gl/gl.test.c')
-rw-r--r-- | src/gl/gl.test.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 |