Pergunta

I have the following TCL code, and I get an "reached end of comment while inside a @code block; check for missing @endcode tag!" in the blank line following "proc :: IniGuiValues { } {

The #\endcode is there after the closing brace of the proc. I do not understand why..

  ## 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
      } 
Foi útil?

Solução

You are breaking up the comment block before your endcode command.

## 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
  } 
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top