tools/generate_stubs/generate_stubs.py
def WriteStubFunctions(self, outfile):
    """Write the function stubs to handle dispatching to real implementations.

    Functions that have a return type other than void will look as follows:

      ReturnType FunctionName(A a) {
        return FunctionName_ptr(a);
      }

    Functions with a return type of void will look as follows:

      void FunctionName(A a) {
        FunctionName_ptr(a);
      }

    Args:
      outfile: The file handle to populate.
    """
    outfile.write('// Stubs that dispatch to the real implementations.\n')
    for sig in self.signatures:
      sig['export'] = self.export_macro
      outfile.write('%s\n' % PosixStubWriter.StubFunction(sig))
Write the function stubs to handle dispatching to real implementations.

    Functions that have a return type other than void will look as follows:

      ReturnType FunctionName(A a) {
        return FunctionName_ptr(a);
      }

    Functions with a return type of void will look as follows:

      void FunctionName(A a) {
        FunctionName_ptr(a);
      }

    Args:
      outfile: The file handle to populate.
    
Write the function stubs to handle dispatching to real implementations.
Functions that have a return type other than void will look as follows.



Functions with a return type of void will look as follows.


Write the function stubs to handle dispatching to real implementations . Functions that have a return type other than void will look as follows . Functions with a return type of void will look as follows .
def WriteStubFunctions(self, outfile):
    outfile.write('// Stubs that dispatch to the real implementations.\n')
    for sig in self.signatures:
      sig['export'] = self.export_macro
      outfile.write('%s\n' % PosixStubWriter.StubFunction(sig))
def WriteStubFunctions ( self , outfile ) : outfile . write ( '// Stubs that dispatch to the real implementations.\n' ) for sig in self . signatures : sig [ 'export' ] = self . export_macro outfile . write ( '%s\n' % PosixStubWriter . StubFunction ( sig ) )
Write the function stubs to handle dispatching to real implementations.
Write the function stubs to handle dispatching to real implementations .
"""Write the function stubs to handle dispatching to real implementations.

    Functions that have a return type other than void will look as follows:

      ReturnType FunctionName(A a) {
        return FunctionName_ptr(a);
      }

    Functions with a return type of void will look as follows:

      void FunctionName(A a) {
        FunctionName_ptr(a);
      }

    Args:
      outfile: The file handle to populate.
    """
self
outfile
The file handle to populate.
The file handle to populate .