def inline_call(self, body, **args): ctxh = hash(self.context) bodyh = hash(body) ke = (ctxh, bodyh) if ke not in self.inlines: lib, fin = self._make_inline_call(body, **args) self.fins.append(fin) self.inlines[ke] = lib # have to sort since we pass by keyword (which is ordered by hash) vals = [v for k, v in cppinl.order_args(args)] cmake.invoke_function( self.inlines[ke].temp2e5e3662020b4edea3ab3a5598010207, *vals)
def inline_call(self, body, **args): ctxh = hash(self.context) bodyh = hash(body) ke = (ctxh, bodyh) if ke not in self.inlines: lib, fin = self._make_inline_call(body, **args) self.fins.append(fin) self.inlines[ke] = lib # have to sort since we pass by keyword (which is ordered by hash) vals = [v for k, v in cppinl.order_args(args)] cmake.invoke_function(self.inlines[ke].temp2e5e3662020b4edea3ab3a5598010207, *vals)
def wrap(**args): # have to sort since we pass by keyword (which is ordered by hash) vals = [v for k, v in cppinl.order_args(args)] return cmake.invoke_function(self.lib.__getattr__(fnname), *vals)