ccbindings

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package ccbindings generates C++ bindings for a GX package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(pkg *ir.Package) (bindings.Binder, error)

New C++ binder.

func NewWithFmtPath added in v0.5.0

func NewWithFmtPath(fmtpath FmtPath, pkg *ir.Package) (bindings.Binder, error)

NewWithFmtPath returns a new C++ binder with a path formatter.

Types

type FmtPath added in v0.5.0

type FmtPath interface {
	HeaderPath(path string) string
	HeaderGuard(path string) string
	Namespace(path string) string
	PackagePath(*ir.Package) string
}

FmtPath is a set of functions to format C++ paths.

Directories

Path Synopsis
Package fmtpath formats paths for C++ generated files.
Package fmtpath formats paths for C++ generated files.

Jump to

Keyboard shortcuts

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