def activate(self): self.active = True if self.firstActivation: utils.declareCppCode('#include "dlfcn.h"') dlOpenRint = 'dlopen("libRint.so",RTLD_NOW);' utils.processCppCode(dlOpenRint) utils.declareCppCode(_TTabComHookCode) self.hook = ROOT._TTabComHook self.firstActivation = False
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)