mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-15 05:58:30 +01:00
cpp2ffi: check_template: dont add space between template and *
This commit is contained in:
@@ -157,11 +157,12 @@ local function check_template(code)
|
|||||||
te = te:gsub("%s","_")
|
te = te:gsub("%s","_")
|
||||||
te = te:gsub("%*","Ptr")
|
te = te:gsub("%*","Ptr")
|
||||||
|
|
||||||
code2 = code:gsub("(<[%w_%*%s]+>)([^%s])","%1 %2")
|
code2 = code:gsub("(<[%w_%*%s]+>)([^%s%*])","%1 %2")
|
||||||
code2 = code2:gsub("<([^<>]-)>","_"..te)
|
code2 = code2:gsub("<([^<>]-)>","_"..te)
|
||||||
end
|
end
|
||||||
return ttype,template,te,code2
|
return ttype,template,te,code2
|
||||||
end
|
end
|
||||||
|
----------------------------------------
|
||||||
local function parse_enum_value(value, allenums,dontpost)
|
local function parse_enum_value(value, allenums,dontpost)
|
||||||
local function clean(val)
|
local function clean(val)
|
||||||
if type(val)=="string" then
|
if type(val)=="string" then
|
||||||
|
Reference in New Issue
Block a user