Documentation ¶
Overview ¶
Package gdnativewrapper generates C code to wrap all of the gdnative methods to call functions on the gdnative_api_structs to work around the cgo C function pointer limitation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type View ¶
type View struct { ApiVersions []gdnativeapijson.APIVersion Type string StructType string Name string }
View is a structure that holds the api struct, so it can be used inside our template.
func (View) HasArgs ¶
func (v View) HasArgs(args []gdnativeapijson.Argument) bool
HasArgs is a function we use inside the template to test whether or not the function has arguments. This is so we can determine if we need to place a comma.
func (View) NotLastElement ¶
func (v View) NotLastElement(n int, slice []gdnativeapijson.Argument) bool
NotLastElement is a function we use inside the template to test whether or not the given element is the last in the slice or not. This is so we can correctly insert commas for argument lists.
Click to show internal directories.
Click to hide internal directories.