Exemplo n.º 1
0
 def cpp(self, line, cell):
     '''Executes the content of the cell as C++ code.'''
     args = parse_argstring(self.cpp, line)
     if args.aclic:
         utils.invokeAclic(cell)
     elif args.declare:
         utils.declareCppCode(cell)
     else:
         utils.processCppCode(cell)
Exemplo n.º 2
0
def ACLiC(code):
     status = 0
     if isPlatformApple():
         invokeAclic(code)
     else:
         tmpfile = NamedTemporaryFile(delete=False,suffix='.C',dir=os.getcwd())#will be removed when library is created
         tmpfile.write(code)
         tmpfilename = tmpfile.name
         tmpfile.close()
         Executor = GetExecutor()
         status = Executor('.L %s+'%tmpfilename)
     return status