PDA

View Full Version : Equates



Charles Pegge
18-03-2009, 09:26
Equates are treated as macros. The definition is very loose!






'EQUATES
'

uses "oxygen","file"
dim src as string

src = "

def a 1

#define b 2

%c 3
% c 3
%c = 3


$d 4
$d `four`
%d `four`



print `value ` %c ` ` %d ` ` d

"
o2_basic src

'msgbox 0, o2_view "o2h "+src

if len(o2_error) then
msgbox 0, o2_error : stop
end if

o2_exec