Old 17th November 2021, 10: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
Old 17th November 2021, 12:26   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,505
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
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
macros, sourceforge

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump