Пример #1
0
 def _make_inline_call(self, body, **args):
     # using a uuid for the function name, hopefully avoids conflicts
     decl = cppinl.cpp_func_def_convert(
         'temp2e5e3662020b4edea3ab3a5598010207', body, None, **args)
     src = self.emit_source(lines=[decl])
     lib, fin = self._make(src=src)
     return lib, fin
Пример #2
0
 def _make_inline_call(self, body, **args):
   # using a uuid for the function name, hopefully avoids conflicts
   decl = cppinl.cpp_func_def_convert('temp2e5e3662020b4edea3ab3a5598010207', 
       body, None, **args)
   src = self.emit_source(lines=[decl])
   lib, fin = self._make(src=src)
   return lib, fin
Пример #3
0
 def inline_source(self, body, **args):
     decl = cppinl.cpp_func_def_convert(
         'temp2e5e3662020b4edea3ab3a5598010207', body, None, **args)
     src = self.emit_source(lines=[decl])
     return src
Пример #4
0
 def decl_func(self, name, body, rtype=None, **args):
     self.src.append(cppinl.cpp_func_def_convert(name, body, rtype, **args))
Пример #5
0
 def inline_source(self, body, **args):
   decl = cppinl.cpp_func_def_convert('temp2e5e3662020b4edea3ab3a5598010207', 
       body, None, **args)
   src = self.emit_source(lines=[decl])
   return src
Пример #6
0
 def decl_func(self, name, body, rtype=None, **args):
   self.src.append(cppinl.cpp_func_def_convert(name, body, rtype, **args))