d02aa9ac0b
Just clarified for myself why `subx translate` and `subx run` need to share code: emulation supports the tests first and foremost. In the process we clean up our architecture for levels of layers. It's a good idea but unused once we reconceive of "level 1" as just part of the test harness.
13 lines
296 B
C++
13 lines
296 B
C++
:(before "End Types")
|
|
typedef void (*transform_fn)(program&);
|
|
:(before "End Globals")
|
|
vector<transform_fn> Transform;
|
|
|
|
:(before "End transform(program& p)")
|
|
for (int t = 0; t < SIZE(Transform); ++t)
|
|
(*Transform.at(t))(p);
|
|
|
|
:(before "End One-time Setup")
|
|
// Begin Transforms
|
|
// End Transforms
|