Commit 9fee649
committed
Merge pull request atomvm#761 from fadushin/prepend-avm
Prepend AVM files that are loaded via add_avm_pack_file
This PR prepends the AVM data to the list of AVMs when using the `atomvm:
add_avm_pack_file` function. In so doing, modules in AVM files that are so
added are searched first when loading, allowing users to over-ride module
definitions in applications (for testing/debugging)
These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).
SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later2 files changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
3590 | 3591 | | |
3591 | 3592 | | |
3592 | 3593 | | |
3593 | | - | |
| 3594 | + | |
3594 | 3595 | | |
3595 | 3596 | | |
3596 | 3597 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
75 | 82 | | |
76 | 83 | | |
77 | 84 | | |
| |||
104 | 111 | | |
105 | 112 | | |
106 | 113 | | |
| 114 | + | |
107 | 115 | | |
108 | 116 | | |
109 | 117 | | |
| |||
0 commit comments