Allow referencing of typemap keywords inside of "$typemap("

This commit is contained in:
Seth R Johnson 2018-09-20 15:50:27 -04:00
commit 1329670640
4 changed files with 46 additions and 14 deletions

View file

@ -1,10 +1,15 @@
import special_variable_macros
cvar = special_variable_macros.cvar
name = special_variable_macros.Name()
if special_variable_macros.testFred(name) != "none":
raise "test failed"
if cvar.accessed_examplekw != 0:
raise "Precondition failed"
if special_variable_macros.testJack(name) != "$specialname":
raise "test failed"
if cvar.accessed_examplekw != 1:
raise "Postcondition failed"
if special_variable_macros.testJill(name) != "jilly":
raise "test failed"
if special_variable_macros.testMary(name) != "SWIGTYPE_p_NameWrap":