Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalMutex *sync.Mutex = &sync.Mutex{}
GlobalMutex provides a mutex across the entire package.
Functions ¶
This section is empty.
Types ¶
type Metatable ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
var GlobalRegistry *Registry = NewRegistry()
GlobalRegistry holds golang values in which their registry indexes are to be passed to the C runtime. upon return from the C runtime, we can use the Registry Indexes sent back from C to obtain our real values. NEVER EVER SEND GOLANG POINTERS TO C. golang may change pointer values during scheduling and GC, so references to go pointers in C may age-out
func NewRegistry ¶
func NewRegistry() *Registry
func (*Registry) RemoveValue ¶
func (*Registry) ReserveValue ¶
type State ¶
type State interface { Dostring(string) int Error() Getfield(int, string) Getglobal(string) Gettop() int Insert(int) Isnil(int) bool Isnumber(int) bool Loadfile(string) error Newtable() Newthread() State Openlibs() Pcall(int, int, int) error Pop(int) Pushclosure(Function, int) Pushfunction(Function) Pushmetatable(*Metatable) Pushmodule(string, Function) Pushnumber(float64) Pushstring(string) Resume(int) (bool, error) Setfield(int, string) Setglobal(string) Setmetatable(int) int Tonumber(int) float64 Tostring(int) string Xmove(State, int) }
Click to show internal directories.
Click to hide internal directories.