It appears much more convenient to access oreg in particular via an "index variable". To avoid repeated boilerplate, add the accessor here as a c++ operator overload. This makes smpc.h c++-only. With defines guarding the overload, it could be reduced to C again, though I decided I don't want to bother with testing that.
Description
Languages
C
82.7%
Assembly
8.5%
Makefile
7.3%
C++
1.5%