parameters: (msg, program)
return_statement: return True
docstring: Print OpenGL link errors, if any, for a given program.
      
      msg is an rbitrary human readable string
      program is an int (an OpenGL program name)
docstring_summary: Print OpenGL link errors, if any, for a given program.
      
      msg is an rbitrary human readable string
      program is an int (an OpenGL program name)
docstring_tokens: Print OpenGL link errors if any for a given program . msg is an rbitrary human readable string program is an int ( an OpenGL program name )
function: def gl_link_error(msg, program):
      """
      Print OpenGL link errors, if any, for a given program.
      
      msg is an rbitrary human readable string
      program is an int (an OpenGL program name)
      """
      buf = bgl.Buffer(bgl.GL_INT,1)
      bgl.glGetProgramiv(program, bgl.GL_LINK_STATUS,buf)
      if buf[0] == bgl.GL_TRUE:
          return False
      err = buf[0]
      charbuf = bgl.Buffer(bgl.GL_BYTE,4000)
      lenbuf = bgl.Buffer(bgl.GL_INT,1)
      bgl.glGetProgramInfoLog(program,4000,lenbuf,charbuf)
      print('GL Error: %d (%s)\n%s'%(err, msg, "".join(map( chr, charbuf[:lenbuf[0]]))))
      return True
function_tokens: def gl_link_error ( msg , program ) : buf = bgl . Buffer ( bgl . GL_INT , 1 ) bgl . glGetProgramiv ( program , bgl . GL_LINK_STATUS , buf ) if buf [ 0 ] == bgl . GL_TRUE : return False err = buf [ 0 ] charbuf = bgl . Buffer ( bgl . GL_BYTE , 4000 ) lenbuf = bgl . Buffer ( bgl . GL_INT , 1 ) bgl . glGetProgramInfoLog ( program , 4000 , lenbuf , charbuf ) print ( 'GL Error: %d (%s)\n%s' % ( err , msg , "" . join ( map ( chr , charbuf [ : lenbuf [ 0 ] ] ) ) ) ) return True