我有以下TCL代码,并且在@code块内部得到“到达注释的结尾;检查缺少的@endcode标记!”在“proc :: IniGuiValues {} {
之后的空白行中#proc结束后,#\ endcode就在那里。我不明白为什么..
## For: Something
#
# This proc initializes the GUI with meaningful values.
#
# \arg \c PROC HAS NO ARGUMENTS.
# \return PROC HAS NO RETURNVALUES
# \todo Harmonize var names
# \code
proc ::IniGuiValues { } {
THIS LINE IS BLANK
set err [ catch { set LCIds [getSubcaseList] } res ]
if { $err == 0 } {
set ::GUI_LCs $LCIds
}
答案 0 :(得分:2)
您正在结束代码命令之前分解注释块。
## For: Something
#
# This proc initializes the GUI with meaningful values.
#
# \arg \c PROC HAS NO ARGUMENTS.
# \return PROC HAS NO RETURNVALUES
# \todo Harmonize var names
# \code
# proc ::IniGuiValues { } {
# THIS LINE IS BLANK
# set err [ catch { set LCIds [getSubcaseList] } res ]
# if { $err == 0 } {
# set ::GUI_LCs $LCIds
# }
# \endcode
proc ::IniGuiValues { } {
THIS LINE IS BLANK
set err [ catch { set LCIds [getSubcaseList] } res ]
if { $err == 0 } {
set ::GUI_LCs $LCIds
}