Commit c50158f
committed
Use C++ templates to create specialization of Interpreter loop
Previously, I used macros, because I couldn’t figure out how to get this to work with templates. Turns out the template parameter shouldn’t be a function parameter, which I for some reason thought would be needed before.
Signed-off-by: Stefan Marr <git@stefan-marr.de>1 parent a662c18 commit c50158f
File tree
7 files changed
+617
-627
lines changed- SOM.xcodeproj
- src
- interpreter
- vm
7 files changed
+617
-627
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1123 | 1123 | | |
1124 | 1124 | | |
1125 | 1125 | | |
1126 | | - | |
| 1126 | + | |
1127 | 1127 | | |
1128 | 1128 | | |
1129 | 1129 | | |
| |||
1136 | 1136 | | |
1137 | 1137 | | |
1138 | 1138 | | |
1139 | | - | |
| 1139 | + | |
1140 | 1140 | | |
1141 | 1141 | | |
1142 | 1142 | | |
| |||
1180 | 1180 | | |
1181 | 1181 | | |
1182 | 1182 | | |
1183 | | - | |
| 1183 | + | |
1184 | 1184 | | |
1185 | 1185 | | |
1186 | 1186 | | |
| |||
1195 | 1195 | | |
1196 | 1196 | | |
1197 | 1197 | | |
1198 | | - | |
| 1198 | + | |
1199 | 1199 | | |
1200 | 1200 | | |
1201 | 1201 | | |
| |||
1232 | 1232 | | |
1233 | 1233 | | |
1234 | 1234 | | |
| 1235 | + | |
1235 | 1236 | | |
1236 | 1237 | | |
1237 | 1238 | | |
| |||
1255 | 1256 | | |
1256 | 1257 | | |
1257 | 1258 | | |
| 1259 | + | |
1258 | 1260 | | |
1259 | 1261 | | |
1260 | 1262 | | |
| |||
1279 | 1281 | | |
1280 | 1282 | | |
1281 | 1283 | | |
| 1284 | + | |
1282 | 1285 | | |
1283 | 1286 | | |
1284 | 1287 | | |
| |||
1301 | 1304 | | |
1302 | 1305 | | |
1303 | 1306 | | |
| 1307 | + | |
1304 | 1308 | | |
1305 | 1309 | | |
1306 | 1310 | | |
| |||
0 commit comments