Commit e590520
committed
Code formatting and assert/message improvements
Reformat code and tighten checks across several modules:
- common/utils/utils_hex.h: Update copyright years; reformat namespace, functions and templates; compact FromChar; make FromHex stricter with a compile-time static_assert for invalid hex digits; minor whitespace and comment adjustments.
- lib-artnet/src/controller/artnetcontroller.cpp: Reflow braces and spacing, unify formatting, and simplify some expressions; no behavioral logic changes intended.
- lib-network/src/core/network_memory.h: Improve assert diagnostics for invalid pointers and double-free detection.
- lib-rdm/src/controller/rdm_discovery_statemachine.cpp: Reflow formatting, compact printf calls, and improve assert messages; cleanup namespace closing.
Overall these are stylistic and safety-focused changes; functionality should remain unchanged except for stricter compile-time checks in the hex utilities.1 parent 15aea27 commit e590520
4 files changed
Lines changed: 114 additions & 224 deletions
File tree
- common/include/common/utils
- lib-artnet/src/controller
- lib-network/src/core
- lib-rdm/src/controller
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 33 | + | |
| 34 | + | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
40 | | - | |
41 | | - | |
| 38 | + | |
42 | 39 | | |
43 | 40 | | |
44 | 41 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 42 | + | |
50 | 43 | | |
51 | | - | |
52 | | - | |
53 | | - | |
| 44 | + | |
| 45 | + | |
54 | 46 | | |
55 | 47 | | |
56 | 48 | | |
57 | | - | |
58 | | - | |
| 49 | + | |
59 | 50 | | |
60 | 51 | | |
61 | 52 | | |
62 | | - | |
63 | | - | |
| 53 | + | |
64 | 54 | | |
65 | | - | |
66 | | - | |
67 | | - | |
| 55 | + | |
68 | 56 | | |
69 | 57 | | |
70 | 58 | | |
| |||
73 | 61 | | |
74 | 62 | | |
75 | 63 | | |
76 | | - | |
77 | | - | |
78 | | - | |
| 64 | + | |
| 65 | + | |
79 | 66 | | |
80 | 67 | | |
81 | 68 | | |
82 | | - | |
83 | | - | |
84 | | - | |
| 69 | + | |
| 70 | + | |
85 | 71 | | |
86 | 72 | | |
87 | 73 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
| 74 | + | |
| 75 | + | |
94 | 76 | | |
95 | 77 | | |
96 | | - | |
97 | | - | |
| 78 | + | |
| 79 | + | |
98 | 80 | | |
99 | 81 | | |
100 | 82 | | |
101 | 83 | | |
102 | 84 | | |
103 | | - | |
104 | | - | |
| 85 | + | |
105 | 86 | | |
106 | | - | |
107 | | - | |
108 | | - | |
| 87 | + | |
| 88 | + | |
109 | 89 | | |
110 | 90 | | |
111 | 91 | | |
112 | 92 | | |
113 | 93 | | |
114 | | - | |
115 | 94 | | |
116 | 95 | | |
117 | | - | |
| 96 | + | |
0 commit comments