Merge branch 'typemap-colon'

* typemap-colon:
  Incoporate review suggestions
  Allow referencing of typemap keywords inside of "$typemap("
This commit is contained in:
William S Fulton 2022-06-01 07:57:01 +01:00
commit da40946aaa
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":