@@ -7,33 +7,40 @@ import scala.scalanative.native._
7
7
@ native.extern
8
8
object Enum {
9
9
type enum_days = native.CUnsignedInt
10
- type enum_bigValues = native.CUnsignedLong
11
- type enum_negativeValues = native.CInt
12
- type enum_bigNegativeValues = native.CLong
13
- def get_WEDNESDAY (): enum_days = native.extern
14
- def check_BIG_NEG_A (big_neg_a : enum_bigNegativeValues): native.CString = native.extern
15
- }
10
+ object enum_days {
11
+ final val MONDAY : enum_days = 0 .toUInt
12
+ final val TUESDAY : enum_days = 200 .toUInt
13
+ final val WEDNESDAY : enum_days = 201 .toUInt
14
+ final val THURSDAY : enum_days = 4 .toUInt
15
+ final val FRIDAY : enum_days = 5 .toUInt
16
+ final val SATURDAY : enum_days = 3 .toUInt
17
+ final val SUNDAY : enum_days = 4 .toUInt
18
+ }
16
19
17
- import Enum ._
18
-
19
- object EnumEnums {
20
- final val enum_days_MONDAY : enum_days = 0 .toUInt
21
- final val enum_days_TUESDAY : enum_days = 200 .toUInt
22
- final val enum_days_WEDNESDAY : enum_days = 201 .toUInt
23
- final val enum_days_THURSDAY : enum_days = 4 .toUInt
24
- final val enum_days_FRIDAY : enum_days = 5 .toUInt
25
- final val enum_days_SATURDAY : enum_days = 3 .toUInt
26
- final val enum_days_SUNDAY : enum_days = 4 .toUInt
20
+ type enum_bigValues = native.CUnsignedLong
21
+ object enum_bigValues {
22
+ final val BIG_A : enum_bigValues = 10000000000L .toULong
23
+ final val BIG_B : enum_bigValues = 1L .toULong
24
+ }
27
25
28
- final val enum_bigValues_BIG_A : enum_bigValues = 10000000000L .toULong
29
- final val enum_bigValues_BIG_B : enum_bigValues = 1L .toULong
26
+ type enum_anonymous_0 = native.CUnsignedInt
27
+ object enum_anonymous_0 {
28
+ final val ANON_A : enum_anonymous_0 = 0 .toUInt
29
+ final val ANON_B : enum_anonymous_0 = 1 .toUInt
30
+ }
30
31
31
- final val enum_ANON_A : native.CUnsignedInt = 0 .toUInt
32
- final val enum_ANON_B : native.CUnsignedInt = 1 .toUInt
32
+ type enum_negativeValues = native.CInt
33
+ object enum_negativeValues {
34
+ final val NEG_A : enum_negativeValues = - 1
35
+ final val NEG_B : enum_negativeValues = - 2
36
+ }
33
37
34
- final val enum_negativeValues_NEG_A : enum_negativeValues = - 1
35
- final val enum_negativeValues_NEG_B : enum_negativeValues = - 2
38
+ type enum_bigNegativeValues = native.CLong
39
+ object enum_bigNegativeValues {
40
+ final val BIG_NEG_A : enum_bigNegativeValues = - 10000000000L
41
+ final val BIG_NEG_B : enum_bigNegativeValues = - 1L
42
+ }
36
43
37
- final val enum_bigNegativeValues_BIG_NEG_A : enum_bigNegativeValues = - 10000000000L
38
- final val enum_bigNegativeValues_BIG_NEG_B : enum_bigNegativeValues = - 1L
44
+ def get_WEDNESDAY () : enum_days = native.extern
45
+ def check_BIG_NEG_A ( big_neg_a : enum_bigNegativeValues) : native. CString = native.extern
39
46
}
0 commit comments