ffi

package
v0.0.0-...-512021a Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package gdextensionwrapper generates C code to wrap all of the gdextension methods to call functions on the gdextension_api_structs to work around the Cgo C function pointer limitation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(projectPath string, ast clang.CHeaderFileAST)

func GenerateGDExtensionInterfaceGoFile

func GenerateGDExtensionInterfaceGoFile(projectPath string, ast clang.CHeaderFileAST) error

func GenerateGDExtensionWrapperGoFile

func GenerateGDExtensionWrapperGoFile(projectPath string, ast clang.CHeaderFileAST) error

func GenerateGDExtensionWrapperHeaderFile

func GenerateGDExtensionWrapperHeaderFile(projectPath string, ast clang.CHeaderFileAST) error

func GenerateManagerInterfaceGoFile

func GenerateManagerInterfaceGoFile(projectPath string, ast clang.CHeaderFileAST) error

Types

type ByName

type ByName []clang.TypedefFunction

func (ByName) Len

func (arr ByName) Len() int

func (ByName) Less

func (arr ByName) Less(i, j int) bool

func (ByName) Swap

func (arr ByName) Swap(i, j int)

type ImplData

type ImplData struct {
	Ast     clang.CHeaderFileAST
	Methods []clang.TypedefFunction
	ClsName string
}

Jump to

Keyboard shortcuts

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