From 6c31357d99614457cca58941543a118928affe88 Mon Sep 17 00:00:00 2001 From: sonoro1234 Date: Wed, 2 Aug 2023 17:44:18 +0200 Subject: [PATCH] take care of pointers to templates --- generator/cpp2ffi.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/generator/cpp2ffi.lua b/generator/cpp2ffi.lua index 34191e4..c0bd496 100644 --- a/generator/cpp2ffi.lua +++ b/generator/cpp2ffi.lua @@ -1716,8 +1716,9 @@ function M.Parser() end local template_type for k,v in pairs(self.templates) do - local template_type2 = typen:match(k.."_(.+)") - if template_type2 then + --local template_type2 = typen:match(k.."_(.+)") + local template_type2 = typen:match(k.."_([^%*]+)") --discard * for pointers + if template_type2 then for k1,k2 in pairs(v) do if template_type2==k2 then template_type=k1