commit fea53becc2ff8f2fa5137e40e75beaac39af9829 parent 8d385350da75043e03f44cd018d84a8936931fda Author: Michael Savage <mikejsavage@gmail.com> Date: Sat Feb 6 17:07:59 +0000 Make gl stuff static Diffstat:
gl.cc | | | 8 | ++++---- |
diff --git a/gl.cc b/gl.cc @@ -17,7 +17,7 @@ #define GREEN "\x1b[1;33m" #ifndef __APPLE__ -const char * type_string( const GLenum type ) { +static const char * type_string( const GLenum type ) { switch (type) { case GL_DEBUG_TYPE_ERROR: return "error"; @@ -36,7 +36,7 @@ const char * type_string( const GLenum type ) { } } -const char * severity_string( const GLenum severity ) { +static const char * severity_string( const GLenum severity ) { switch( severity ) { case GL_DEBUG_SEVERITY_LOW: return GREEN "low" RESET; @@ -49,7 +49,7 @@ const char * severity_string( const GLenum severity ) { } } -void gl_error_printer( +static void gl_error_printer( const GLenum source, const GLenum type, const GLuint id, const GLenum severity, const GLsizei length, const GLchar * const message, const void * _ ) { @@ -64,7 +64,7 @@ void gl_error_printer( } #endif -void glfw_error_printer( const int code, const char * const message ) { +static void glfw_error_printer( const int code, const char * const message ) { warnx( "GLFW error %d: %s", code, message ); }