From da10dd7046817c73ea45d9f0f07da4d52c9795ac Mon Sep 17 00:00:00 2001 From: Joao Matos Date: Wed, 17 Aug 2016 15:13:18 +0100 Subject: [PATCH] Implement const-qualified printing of CIL strings. --- src/AST/CppTypePrinter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AST/CppTypePrinter.cs b/src/AST/CppTypePrinter.cs index 2fc3528a..043b5b48 100644 --- a/src/AST/CppTypePrinter.cs +++ b/src/AST/CppTypePrinter.cs @@ -216,7 +216,7 @@ namespace CppSharp.AST public string VisitCILType(CILType type, TypeQualifiers quals) { if (type.Type == typeof(string)) - return "char*"; + return quals.IsConst ? "const char*" : "char*"; throw new NotImplementedException(); }