Ninja
Public Member Functions | Public Attributes | List of all members
CLWrapper Struct Reference

Wraps a synchronous execution of a CL subprocess. More...

#include <msvc_helper.h>

Public Member Functions

 CLWrapper ()
 
int Run (const string &command, string *output)
 Start a process and gather its raw output. More...
 
void SetEnvBlock (void *env_block)
 Set the environment block (as suitable for CreateProcess) to be used by Run(). More...
 

Public Attributes

void * env_block_
 

Detailed Description

Wraps a synchronous execution of a CL subprocess.

Definition at line 50 of file msvc_helper.h.

Constructor & Destructor Documentation

CLWrapper::CLWrapper ( )
inline

Definition at line 51 of file msvc_helper.h.

Member Function Documentation

int CLWrapper::Run ( const string &  command,
string *  output 
)

Start a process and gather its raw output.

Returns its exit code. Crashes (calls Fatal()) on error.

Definition at line 119 of file msvc_helper-win32.cc.

References env_block_, Fatal(), and ReadFile().

Referenced by MSVCHelperMain(), and TEST().

void CLWrapper::SetEnvBlock ( void *  env_block)
inline

Set the environment block (as suitable for CreateProcess) to be used by Run().

Definition at line 55 of file msvc_helper.h.

Referenced by MSVCHelperMain(), and TEST().

Member Data Documentation

void* CLWrapper::env_block_

Definition at line 61 of file msvc_helper.h.

Referenced by Run().


The documentation for this struct was generated from the following files: