Commit 76a7793
committed
Move assert for av_new_alloc() to embed.fnc
You can't allocate a zero length array using this function; this uses
the new assert() functionality in embed.fnc introduced in the previous
few commits to cause the assertion to be placed in
PERL_ARGS_ASSERT_AV_NEW_ALLOC rather than be in the function.
There is no particular need to do this; this is mostly a demonstration
of how it can be done.1 parent 8251570 commit 76a7793
3 files changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
753 | 753 | | |
754 | 754 | | |
755 | 755 | | |
756 | | - | |
| 756 | + | |
| 757 | + | |
757 | 758 | | |
758 | 759 | | |
759 | 760 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
| 195 | + | |
194 | 196 | | |
195 | 197 | | |
196 | | - | |
197 | | - | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments