1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cgen: fix cgen removing random chars from parameter_name (#13038)

This commit is contained in:
Tim Basel 2022-01-05 12:06:06 +01:00 committed by GitHub
parent d3489d4246
commit 897bbb7da5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6742,7 +6742,7 @@ static inline __shared__$interface_name ${shared_fn_name}(__shared__$cctype* x)
mut parameter_name := g.out.cut_last(g.out.len - params_start_pos)
if st.is_ptr() {
parameter_name = parameter_name.trim_left('__shared__')
parameter_name = parameter_name.trim_string_left('__shared__')
}
methods_wrapper.write_string(parameter_name)