Adds a hook to the CallStack. Which will be executed next time.

def add_hook(self, hook):
        """
        Adds a hook to the CallStack. Which will be executed next time.

        """
        h = hook.hash
        self.hooks[h] = hook