diff --git a/swig/segment.i b/swig/segment.i index 79be4b9..5398965 100644 --- a/swig/segment.i +++ b/swig/segment.i @@ -27,3 +27,13 @@ %include "segment.hpp" +%inline %{ + sel_t get_defsr(segment_t *s, int reg) + { + return s->defsr[reg]; + } + void set_defsr(segment_t *s, int reg, sel_t value) + { + s->defsr[reg] = value; + } +%}