Announcement

Collapse
No announcement yet.

Possible error on the Wiki about Macros and Functions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Possible error on the Wiki about Macros and Functions

    Macro vs Function - NSIS

    Example 1.2.7 says
    PHP Code:
    Section Test
      Push 
    "World"
      
    ; ...
      
    Exch $0
      
    ; ...
      
    DetailPrint "Hello World"
      
    Pop $0
      
    ; ...
    SectionEnd 
    Shouldn't it be:
    PHP Code:
    Section Test
      Push 
    "World"
      
    ; ...
      
    Exch $0
      
    ; ...
      
    DetailPrint "Hello $0"
      
    Pop $0
      
    ; ...
    SectionEnd 
    Because otherwise the value "World" of $0 would not be used.

  • #2
    Yes. Not everything on the Wiki is correct but the nice thing about it is that anyone can edit and fix bugs
    IntOp $PostCount $PostCount + 1

    Comment

    Working...
    X
    😀
    🥰
    🤢
    😎
    😡
    👍
    👎