示例#1
0
文件: context.py 项目: bitfort/pycpc
 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
文件: context.py 项目: bitfort/pycpc
 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
文件: context.py 项目: bitfort/pycpc
 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
文件: context.py 项目: bitfort/pycpc
 def decl_func(self, name, body, rtype=None, **args):
     self.src.append(cppinl.cpp_func_def_convert(name, body, rtype, **args))
示例#5
0
文件: context.py 项目: bitfort/pycpc
 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
文件: context.py 项目: bitfort/pycpc
 def decl_func(self, name, body, rtype=None, **args):
   self.src.append(cppinl.cpp_func_def_convert(name, body, rtype, **args))