csource

package
v0.0.0-...-4cc0894 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

AUTOGENERATED FROM executor/common.h

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(lang, src string) (string, error)

Build builds a C/C++ program from source src and returns name of the resulting binary. lang can be "c" or "c++".

func Format

func Format(src []byte) ([]byte, error)

Format reformats C source using clang-format.

func Write

func Write(p *prog.Prog, opts Options) ([]byte, error)

Types

type Options

type Options struct {
	Threaded  bool
	Collide   bool
	Repeat    bool
	Procs     int
	Sandbox   string
	Fault     bool // inject fault into FaultCall/FaultNth
	FaultCall int
	FaultNth  int
	Repro     bool // generate code for use with repro package
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL