Dmitry Ng
d1468187c9
Changes to vxmonitor support
2021-03-22 10:44:45 +03:00
aarzilli
6836c92f77
replaced example allocator in example/alloc.go with one that isn't broken
2013-08-06 14:17:33 +02:00
aarzilli
e232130935
saving lua stack trace
2013-04-01 12:10:52 +02:00
aarzilli
d8e5c9edda
Fixes issue #4 (or at least I hope it does)
2013-03-31 15:34:24 +02:00
aarzilli
bd064a4224
restored lua.State.Error function to existence with a hack
2012-12-21 21:49:19 +01:00
aarzilli
69c75da5b0
quick start guide
2012-10-30 11:37:27 +01:00
aarzilli
dd5cb7a08d
lua.State.Error never worked or was broken by some go update at some point, use panic instead
...
lua_error will longjump out of the calling c function, this seems to mess up cgocall state.
I do not think there is a way to make this work and therefore I have removed lua.State.Error and lua.State.ErrorWithMessage from the interface
DoString and DoFile will instead catch panics and return them as errors
2012-10-27 12:40:32 +02:00
aarzilli
11e5a399e4
Fixed example/basic.go
2012-10-27 11:31:33 +02:00
aarzilli
ad8ad2e237
returning nil in ToGoStruct/ToGoFunction
2012-10-17 09:58:13 +02:00
aarzilli
b3a1fd14f7
PushGoStruct -- with reflection to access and set plain data fields
2012-07-18 16:12:35 +02:00
aarzilli
097c56b52b
pushing go interfaces to lua like we do with functions, changed name of GoFunctoin type, fixed IsGoFunction
2012-06-28 13:26:03 +02:00
aarzilli
e44d144d88
changed examples to make them easier to run locally
2012-06-26 20:00:27 +02:00
aarzilli
e62ba98a4f
Import path fixes for examples and more explanations in README
2012-03-31 19:20:30 +02:00
aarzilli
7dda61b799
Compiles with go1 (barely tested)
2012-03-31 19:08:25 +02:00
Alessandro Arzilli
4582993337
fixed examples to compile with previous changes
2010-12-31 17:17:34 +01:00
Adam Fitzgerald
067622e6cf
slightly better atpanic
2010-09-26 16:28:54 -04:00
Adam Fitzgerald
75cad79ab2
fixed Go function callback to remove the userdata representing the function from the stack before calling the actual function (to match C behavior)
...
added calling go function w/ argument to basic example
2010-09-26 15:35:39 -04:00
Adam Fitzgerald
1ff39a4a4f
changed lua_defs.go generation to leverage cgo's define extraction
...
as a result, lua_defs.go is now built by cgo rather than 8g
2010-09-07 23:32:48 -04:00
Adam Fitzgerald
cb31accd5f
added lua_setallocf functionality
2010-08-29 21:43:54 -04:00
Adam Fitzgerald
b8450b5ae5
changes to makefile for latest go release
2010-08-29 13:28:54 -04:00
Adam Fitzgerald
04fdcee5b9
experimental addition of lua allocator support
...
bad(tm) example of use as lua_newstate param in alloc.go
2010-08-23 22:46:15 -04:00
Adam Fitgerald
99360939c0
settled on simple forwarding functionality for full userdata
...
go-style helpers as well as go type wrappers destined for separate lib
2010-08-01 02:59:27 -04:00
Adam Fitgerald
98cb148be3
build system rollback due to cgo/goinstall incompatibility
2010-07-24 00:38:31 -04:00
Adam Fitgerald
f1d57d98db
more directory structure/package naming changes
2010-07-23 23:28:34 -04:00
Adam Fitzgerald
195d2dda09
implemented AtPanic - overly dirty w/ some extra overhead
...
added example/panic.go an example of using lua.AtPanic
2010-07-14 13:25:10 -04:00
Adam Fitzgerald
19a37ba517
functional GoFunctions, complete with garbage collection hooks to free array space
...
extensions to the basic demo
bugfix in reference handling
2010-07-14 01:54:15 -04:00
Adam Fitzgerald
d1663c3563
still not a git master...
2010-07-14 00:39:09 -04:00
Adam Fitzgerald
a5d380bf59
updated makefile to force _cgo_export.c generated code to be compiled and linked
2010-07-13 22:34:17 -04:00
Adam Fitzgerald
f7c3086bff
added basic example, just imports package
2010-07-13 12:13:30 -04:00