tools/cwrap/plugins/__init__.py
def process_wrapper(self, code, declaration):
        """Used to modify the entire code body for a declaration.

        Code in this case is a string containing the entire generated code for
        a specific declaration. This code can be modified as the plugin sees
        fit. For example, we might want to wrap the function in preprocessor
        guards if it is only enabled for floats.

        Args:
            code: string representing the generated code for the declaration
            declaration: the declaration metadata.

        Returns:
            The same code, modified as the plugin sees fit.

        """
        return code
Used to modify the entire code body for a declaration.

        Code in this case is a string containing the entire generated code for
        a specific declaration. This code can be modified as the plugin sees
        fit. For example, we might want to wrap the function in preprocessor
        guards if it is only enabled for floats.

        Args:
            code: string representing the generated code for the declaration
            declaration: the declaration metadata.

        Returns:
            The same code, modified as the plugin sees fit.

        
Used to modify the entire code body for a declaration.
Code in this case is a string containing the entire generated code for
a specific declaration. This code can be modified as the plugin sees
fit. For example, we might want to wrap the function in preprocessor
guards if it is only enabled for floats.
Used to modify the entire code body for a declaration . Code in this case is a string containing the entire generated code for a specific declaration . This code can be modified as the plugin sees fit . For example we might want to wrap the function in preprocessor guards if it is only enabled for floats .
def process_wrapper(self, code, declaration):
        return code
def process_wrapper ( self , code , declaration ) : return code
Used to modify the entire code body for a declaration.
Used to modify the entire code body for a declaration .
"""Used to modify the entire code body for a declaration.

        Code in this case is a string containing the entire generated code for
        a specific declaration. This code can be modified as the plugin sees
        fit. For example, we might want to wrap the function in preprocessor
        guards if it is only enabled for floats.

        Args:
            code: string representing the generated code for the declaration
            declaration: the declaration metadata.

        Returns:
            The same code, modified as the plugin sees fit.

        """
The same code, modified as the plugin sees fit.
The same code modified as the plugin sees fit .
self
code
string representing the generated code for the declaration
string representing the generated code for the declaration
declaration
the declaration metadata.
the declaration metadata .