Commit 62a208b
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 78c9d2d commit 62a208b
3 files changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
747 | 747 | | |
748 | 748 | | |
749 | 749 | | |
750 | | - | |
| 750 | + | |
| 751 | + | |
751 | 752 | | |
752 | 753 | | |
753 | 754 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| 198 | + | |
| 199 | + | |
198 | 200 | | |
199 | 201 | | |
200 | | - | |
201 | | - | |
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments