Fix for uchar and double
This commit is contained in:
parent
ba8c57984b
commit
007f3aa191
1 changed files with 5 additions and 0 deletions
|
|
@ -20,6 +20,11 @@ proc getType*(str: string): string =
|
|||
replace("unsigned ", "u").
|
||||
replace(re"([u]?int[\d]+)_t", "$1")
|
||||
|
||||
if result == "uchar":
|
||||
result = "cuchar"
|
||||
elif result == "double":
|
||||
result = "cdouble"
|
||||
|
||||
proc getLit*(str: string): string =
|
||||
if str.contains(re"^[\-]?[\d]+$") or
|
||||
str.contains(re"^[\-]?[\d]*\.[\d]+$") or
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue