Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Yuan Zhixiang
c-render-vue
Commits
8e30d42b
Commit
8e30d42b
authored
Apr 26, 2024
by
Yuan Zhixiang
Browse files
指针变量前加上 *
parent
a175695c
Changes
1
Show whitespace changes
Inline
Side-by-side
src/components/VarUnit.vue
View file @
8e30d42b
...
...
@@ -53,6 +53,9 @@ const display_name = computed(() => { // 最终显示的变量名称
if
(
is_struct
.
value
)
{
return
'
#
'
+
var_name
.
value
+
'
(
'
+
var_content
.
value
[
2
]
+
'
)
'
}
if
(
is_pointer
.
value
){
return
'
*
'
+
var_name
.
value
}
return
var_name
.
value
}
else
{
return
'
$
'
+
var_name
.
value
.
substring
(
0
,
spaceIndex
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment