- Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathcpp.go
More file actions
Latest commit
44 lines (39 loc) · 662 Bytes
/
Copy pathcpp.go
File metadata and controls
44 lines (39 loc) · 662 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package imgui
typedouble=float64
typeint=int32
typeuint=uint32
typefloat=float32
typesize_t=uintptr
typechar=byte
/*
func isfalse(x int) bool {
return x == 0
}
*/
funcistrue(xint) bool {
returnx!=0
}
funcbool2int(bbool) int {
ifb {
return1
}
return0
}
const (
IM_S8_MIN=-128
IM_S8_MAX=127
IM_U8_MIN=0
IM_U8_MAX=255
IM_S16_MIN=-32768
IM_S16_MAX=32767
IM_U16_MIN=0
IM_U16_MAX=65535
IM_S32_MIN=-2147483648
IM_S32_MAX=2147483647
IM_U32_MIN=0
IM_U32_MAX=4294967295
IM_S64_MIN=-9223372036854775808
IM_S64_MAX=9223372036854775807
IM_U64_MIN=0
IM_U64_MAX=18446744073709551615
)