示例#1
0
 def test_multi_functions(self):
     mod = ext_tools.ext_module('module_multi_function')
     var_specs = []
     code = ""
     test = ext_tools.ext_function_from_specs('test',code,var_specs)
     mod.add_function(test)
     test2 = ext_tools.ext_function_from_specs('test2',code,var_specs)
     mod.add_function(test2)
     mod.compile(location=build_dir)
     import module_multi_function
     module_multi_function.test()
     module_multi_function.test2()
 def test_multi_functions(self):
     mod = ext_tools.ext_module('module_multi_function')
     var_specs = []
     code = ""
     test = ext_tools.ext_function_from_specs('test',code,var_specs)
     mod.add_function(test)
     test2 = ext_tools.ext_function_from_specs('test2',code,var_specs)
     mod.add_function(test2)
     mod.compile(location=build_dir)
     import module_multi_function
     module_multi_function.test()
     module_multi_function.test2()