Added IntPtrOp alias
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6929 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
97898cc03b
commit
34e9873d5f
10 changed files with 59 additions and 24 deletions
|
@ -585,7 +585,7 @@ good:
|
|||
<ul>
|
||||
|
||||
<li>
|
||||
<b>Int64Op</b> <i>ARG1</i> <i>OP</i> [<i>ARG2</i>]
|
||||
<b id="Int64Op">Int64Op</b> <i>ARG1</i> <i>OP</i> [<i>ARG2</i>]
|
||||
<blockquote>
|
||||
<p>Performs <i>OP</i> on <i>ARG1</i> and optionally <i>ARG2</i> and returns the result on the stack. Both <i>ARG1</i> and <i>ARG2</i> are 64-bit integers. This means they can range between -2^63 and 2^63 - 1.</p>
|
||||
<h4>Available Operations</h4>
|
||||
|
@ -601,13 +601,13 @@ good:
|
|||
<li>Bitwise or -- <b>|</b></li>
|
||||
<li>Bitwise and -- <b>&</b></li>
|
||||
<li>Bitwise xor -- <b>^</b></li>
|
||||
<li>Bitwise not (one argument) -- <b>~</b></li>
|
||||
<li>Logical not (one argument) -- <b>!</b></li>
|
||||
<li>Logical or -- <b>||</b></li>
|
||||
<li>Logical and -- <b>&&</b></li>
|
||||
<li>Less than -- <b><</b></li>
|
||||
<li>Equals -- <b>=</b></li>
|
||||
<li>Greater than -- <b>></b></li>
|
||||
<li>Bitwise not (one argument) -- <b>~</b></li>
|
||||
<li>Logical not (one argument) -- <b>!</b></li>
|
||||
</ul>
|
||||
|
||||
<h4>Usage Examples</h4>
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
!include nsDialogs.nsh
|
||||
!include LogicLib.nsh
|
||||
!include Util.nsh ; IntPtrOp
|
||||
!include WinCore.nsh ; MAKELONG
|
||||
|
||||
Name "nsDialogs Example"
|
||||
|
@ -196,7 +195,7 @@ Function OnNotify
|
|||
IntOp $2 $5 - $4
|
||||
System::Call '*(ir4,ir5,l,&t$2,i)p.r2' ; Create TEXTRANGE and a text buffer
|
||||
${If} $2 P<> 0
|
||||
${IntPtrOp} $3 $2 + 16 ; Find buffer
|
||||
IntPtrOp $3 $2 + 16 ; Find buffer
|
||||
System::Call '*$2(i,i,p$3)' ; Set buffer in TEXTRANGE
|
||||
SendMessage $1 ${EM_GETTEXTRANGE} "" $2 $4
|
||||
${If} $4 <> 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue