From a99713a8bab8d45110d16474ef6c4391e580b741 Mon Sep 17 00:00:00 2001 From: Victor Bombi Date: Tue, 14 Apr 2020 10:31:19 +0200 Subject: [PATCH] dont try to get typedef in typedef struct --- generator/cpp2ffi.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generator/cpp2ffi.lua b/generator/cpp2ffi.lua index 175abd7..c84784f 100644 --- a/generator/cpp2ffi.lua +++ b/generator/cpp2ffi.lua @@ -800,8 +800,8 @@ function M.Parser() linet = linet:gsub("typedef ","") linet = linet:gsub("%(%*("..key..")%)","(*)") self.typedefs_dict[key] = linet - else - print("not found function typedef") + elseif not line:match"typedef%s*struct" then --discard typedef struct + print("typedef not found") print(key,value,line) end end