Discussion:
autoexp.dat
(too old to reply)
Mario
2009-07-03 20:57:13 UTC
Permalink
Hi all,

i have a defined datatype like this;

typedef long fx;

The new datatype fx represents a fixed point math number. Is it possible
to view this variable in its own "space"? I have trying

[Visualizer]
fx{
preview ( $e / 4096. )
}

but it doens't work. I think its because the debugger detects this
variable as a long value. Or i am doing something wrong?

Regards
Mario
Scot T Brennecke
2009-07-05 21:05:59 UTC
Permalink
Post by Mario
Hi all,
i have a defined datatype like this;
typedef long fx;
The new datatype fx represents a fixed point math number. Is it possible
to view this variable in its own "space"? I have trying
[Visualizer]
fx{
preview ( $e / 4096. )
}
but it doens't work. I think its because the debugger detects this
variable as a long value. Or i am doing something wrong?
Regards
Mario
fx is just a synonym for long, as far as the compiler is concerned.
What happens if you make your own class named "fx" with a long member as
its first and only private data member, and give it all the required
functionality of a long by overloading operators as needed?

Loading...