From ce239ed53f28f7e113fe639b98fca72ea3a02b27 Mon Sep 17 00:00:00 2001 From: Victor Bombi Date: Fri, 29 Jan 2021 18:52:22 +0100 Subject: [PATCH] cpp2ffi: overload naming char* -> Chpt (was Str) avoids clash with ImStr - > Str --- generator/cpp2ffi.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/cpp2ffi.lua b/generator/cpp2ffi.lua index 478e777..37c24e2 100644 --- a/generator/cpp2ffi.lua +++ b/generator/cpp2ffi.lua @@ -487,7 +487,7 @@ local function typetoStr(typ) typ = typ:gsub("unsigned%s","u") typ = typ:gsub("const%s","")--"c") typ = typ:gsub("%s+","_") - typ = typ:gsub("charPtr","Str") + typ = typ:gsub("charPtr","Chpt") typ = typ:gsub("int","Int") typ = typ:gsub("bool","Bool") typ = typ:gsub("float","Float")