]> git.cworth.org Git - apitrace/blobdiff - base.py
glProgramStringARB
[apitrace] / base.py
diff --git a/base.py b/base.py
index 6b49009c4b505f4bc70ec389828fd3c3f70b4764..c99d065e54086c1c1c6fe6982ca0f1aefd769db7 100644 (file)
--- a/base.py
+++ b/base.py
@@ -415,15 +415,16 @@ def WrapPointer(type):
     return Pointer(type)
 
 
-class _String(Type):
+class String(Type):
 
-    def __init__(self):
+    def __init__(self, length = None):
         Type.__init__(self, "char *")
+        self.length = length
 
     def visit(self, visitor, *args, **kwargs):
         return visitor.visit_string(self, *args, **kwargs)
 
-String = _String()
+CString = String()
 
 
 class Opaque(Type):