View Single Post
Old 17th November 2021, 11:23   #1
pocz
Junior Member
 
Join Date: Nov 2021
Posts: 8
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.
pocz is offline   Reply With Quote