Commit caec7e1
committed
fix(WebServer): use static const instead of #define for function pointer
- Change from `#define ORIG_XXX ((fn_t)addr)` to `static fn_t const ORIG_XXX = (fn_t)addr;`
- Avoids js-beautify removing space between macro name and parenthesis
- More type-safe and debugger-friendly1 parent e79d545 commit caec7e1
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
| 134 | + | |
134 | 135 | | |
135 | | - | |
| 136 | + | |
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
| |||
0 commit comments