Ninja
Functions
browse.cc File Reference
#include "browse.h"
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <vector>
#include "build/browse_py.h"
Include dependency graph for browse.cc:

Go to the source code of this file.

Functions

void RunBrowsePython (State *state, const char *ninja_command, const char *input_file, int argc, char *argv[])
 Run in "browse" mode, which execs a Python webserver. More...
 

Function Documentation

◆ RunBrowsePython()

void RunBrowsePython ( State state,
const char *  ninja_command,
const char *  input_file,
int  argc,
char *  argv[] 
)

Run in "browse" mode, which execs a Python webserver.

ninja_command is the command used to invoke ninja. args are the number of arguments to be passed to the Python script. argv are arguments to be passed to the Python script. This function does not return if it runs successfully.

Definition at line 27 of file browse.cc.