mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-06 05:48:40 +00:00
packed bits test in mule
This commit is contained in:
@@ -1825,6 +1825,17 @@ basic_inline_tests(void)
|
|||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ rjf: Fancy Visualization Eval Tests
|
//~ rjf: Fancy Visualization Eval Tests
|
||||||
|
|
||||||
|
struct PackedBits
|
||||||
|
{
|
||||||
|
unsigned char b1 : 1;
|
||||||
|
unsigned char b2 : 1;
|
||||||
|
unsigned char b3 : 1;
|
||||||
|
unsigned char b4 : 1;
|
||||||
|
unsigned char b5 : 1;
|
||||||
|
unsigned char b6 : 1;
|
||||||
|
};
|
||||||
|
raddbg_type_view(unsigned char : 1, bool($));
|
||||||
|
|
||||||
struct Bitmap
|
struct Bitmap
|
||||||
{
|
{
|
||||||
unsigned char *base;
|
unsigned char *base;
|
||||||
@@ -1860,6 +1871,10 @@ fancy_viz_eval_tests(void)
|
|||||||
bool bool1 = 0; raddbg_pin(bool1);
|
bool bool1 = 0; raddbg_pin(bool1);
|
||||||
bool bool2 = 1; raddbg_pin(bool2);
|
bool bool2 = 1; raddbg_pin(bool2);
|
||||||
bool bool3 = 0; raddbg_pin(bool3);
|
bool bool3 = 0; raddbg_pin(bool3);
|
||||||
|
PackedBits packed_bits = {};
|
||||||
|
packed_bits.b1 = 1;
|
||||||
|
packed_bits.b3 = 1;
|
||||||
|
packed_bits.b5 = 1;
|
||||||
|
|
||||||
//- rjf: sliders
|
//- rjf: sliders
|
||||||
float slide1 = 500.f; raddbg_pin(range1(slide1, 0, 1000));
|
float slide1 = 500.f; raddbg_pin(range1(slide1, 0, 1000));
|
||||||
|
|||||||
Reference in New Issue
Block a user