^^ - Binary Xor

Top  Previous  Next

Syntax

<result> := (<longValue1> ^^ <longValue2> [ ^^ <longValue3..n> ])

Parameters

<longValue1..n>

 

The values given must be LONGs.

Resulting Code

A call combining all <longValues> with a binary XOR operation. The result is another LONG value.

Description

The ^^ macro is resolved by a call to the BitXor function. It is provided to facilitate porting of C code. To prevent ambiguities with the native Xbase++ ^ power operator, the syntax has been changed from the C original ^ by doubling the operator to ^^. Brackets must be put around all values to be combined with the XOR operation.

Classification

Core

Category

Binary operation macros

Quick Info

Library: cckptcor.lib / cckptcor.dll

Header: cmacros.ch

See also

BitXor

Example

 

#INCLUDE "CockpitCoreLibs.ch"

#INCLUDE "cmacros.ch"

 

FUNCTION Main

 

* This will display the value 12

? (15 ^^ 7 ^^ 4)

 

RETURN NIL