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(); }