Ninja
Public Member Functions | Public Attributes
CLWrapper Struct Reference

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

#include <msvc_helper.h>

List of all members.

Public Member Functions

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

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

Definition at line 61 of file msvc_helper.h.

Referenced by Run().


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