I suspect it can be done now in the c backend but I can't figure out how to get it to work with procedures
Code: Select all
;pbcompilerc -d Unsigned.pb
CompilerIf #PB_Compiler_Backend = #PB_Backend_C
!unsigned int v_a =0;
!unsigned int v_b =0;
CompilerEndIf
Global a.l, b.l,c.l,d.l
a = 4294967295 ;a is unsigned
c = 4294967295 ;c is signed
b = a / 2
If a > b
Debug "a is unsigned"
Else
Debug "a is signed"
EndIf
Debug a
Debug b
d = c / 2
If c > d
Debug "c is unsigned"
Else
Debug "c is signed"
EndIf
Debug c
Debug d