Beispiel #1
0
    def write_code_head(self, f):
        CGenerator.write_code_head(self, f)

        if self.spec.NAME == 'gl':
            f.write(DEFAULT_CALLBACK_GL)
        else:
            f.write(DEFAULT_CALLBACK)

        f.write(DEBUG_CODE)
Beispiel #2
0
    def write_code_head(self, f):
        CGenerator.write_code_head(self, f)

        if self.spec.NAME == 'gl':
            f.write(DEFAULT_CALLBACK_GL)
        else:
            f.write(DEFAULT_CALLBACK)

        f.write(DEBUG_CODE)
Beispiel #3
0
    def write_code_head(self, f):
        CGenerator.write_code_head(self, f)

        if self.spec.NAME == 'gl':
            f.write(DEBUG_CODE_GL.format(spec=self.spec.NAME))
        else:
            f.write(DEBUG_CODE.format(spec=self.spec.NAME))

        f.write(DEBUG_CODE_COMMON.format(spec=self.spec.NAME))

        if self.spec.NAME == 'gl':
            f.write(DEBUG_CODE_GL_EXT.format(spec=self.spec.NAME))
Beispiel #4
0
 def write_api_header(self, f):
     CGenerator.write_api_header(self, f)
     f.write(DEBUG_HEADER)
Beispiel #5
0
 def write_api_header(self, f):
     CGenerator.write_api_header(self, f)
     f.write(DEBUG_HEADER)
Beispiel #6
0
 def write_api_header(self, f):
     CGenerator.write_api_header(self, f)
     f.write(DEBUG_HEADER.format(spec=self.spec.NAME))
     if self.spec.NAME == 'gl':
         f.write(DEBUG_HEADER_GL_EXT.format(spec=self.spec.NAME))