mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-10 20:08:31 +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("%*","Ptr")
|
||||
|
||||
code2 = code:gsub("(<[%w_%*%s]+>)([^%s])","%1 %2")
|
||||
code2 = code:gsub("(<[%w_%*%s]+>)([^%s%*])","%1 %2")
|
||||
code2 = code2:gsub("<([^<>]-)>","_"..te)
|
||||
end
|
||||
return ttype,template,te,code2
|
||||
end
|
||||
----------------------------------------
|
||||
local function parse_enum_value(value, allenums,dontpost)
|
||||
local function clean(val)
|
||||
if type(val)=="string" then
|
||||
|
Reference in New Issue
Block a user