From 073f4384678c1ff0ef1a0935b0211f3193879ddd Mon Sep 17 00:00:00 2001 From: sonoro1234 Date: Tue, 9 Oct 2018 10:39:49 +0200 Subject: [PATCH] dont warn not const reference argument if it is manual --- generator/generator.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/generator/generator.lua b/generator/generator.lua index 3278bfb..8cb5c8c 100644 --- a/generator/generator.lua +++ b/generator/generator.lua @@ -563,7 +563,11 @@ local function func_parser() end table.insert(argsArr,{type=type,name=name,ret=retf,signature=sigf}) if arg:match("&") and not arg:match("const") then - print("reference to no const arg in",funcname,argscsinpars) + --only post error if not manual + local cname = getcimguiname(stname,funcname) + if not cimgui_manuals[cname] then + print("reference to no const arg in",funcname,argscsinpars) + end end end argscsinpars = argscsinpars:gsub("&","")