tools/cwrap/plugins/__init__.py
def process_option_code(self, code, option):
        """Used to modify the entire code body for an option.

        Code in this case is a string containing the entire generated code for
        a specific option. Note that this body includes the checks for each
        option, i.e. if (type checks for one permutation) { ... } else if (type
        checks for another permutation) { ... } etc.

        Args:
            code: string representing the generated code for the option
            option: dictionary containing the information for this specific
            option.

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

        """
        return code
Used to modify the entire code body for an option.

        Code in this case is a string containing the entire generated code for
        a specific option. Note that this body includes the checks for each
        option, i.e. if (type checks for one permutation) { ... } else if (type
        checks for another permutation) { ... } etc.

        Args:
            code: string representing the generated code for the option
            option: dictionary containing the information for this specific
            option.

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

        
Used to modify the entire code body for an option.
Code in this case is a string containing the entire generated code for
a specific option. Note that this body includes the checks for each
option, i.e. if (type checks for one permutation) { ... } else if (type
checks for another permutation) { ... } etc.

string representing the generated code for the option
option: dictionary containing the information for this specific
option.

The same code, modified as the plugin sees fit.
Used to modify the entire code body for an option . Code in this case is a string containing the entire generated code for a specific option . Note that this body includes the checks for each option i . e . if ( type checks for one permutation ) { ... } else if ( type checks for another permutation ) { ... } etc . string representing the generated code for the option option : dictionary containing the information for this specific option . The same code modified as the plugin sees fit .
def process_option_code(self, code, option):
        return code
def process_option_code ( self , code , option ) : return code
Used to modify the entire code body for an option.
Used to modify the entire code body for an option .
"""Used to modify the entire code body for an option.

        Code in this case is a string containing the entire generated code for
        a specific option. Note that this body includes the checks for each
        option, i.e. if (type checks for one permutation) { ... } else if (type
        checks for another permutation) { ... } etc.

        Args:
            code: string representing the generated code for the option
            option: dictionary containing the information for this specific
            option.

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

        """
self
code
option