33 Commits

Author SHA1 Message Date
Dmitry Ng d1468187c9 Changes to vxmonitor support 2021-03-22 10:44:45 +03:00
aarzilli 459c093c42 Ensure that registry resize is large enough
Fixes #64
2018-03-02 09:45:04 +01:00
Flier Lu 812b106414 force to link luajit with tag 2017-08-18 09:18:26 -07:00
aarzilli 8eb37ae214 update to work with go1.9
See https://github.com/golang/go/issues/20266
2017-05-22 11:15:53 +02:00
huangwei1024 cf37152cc4 support mingw64 on windows 2017-03-21 09:37:15 +01:00
Andrew Danforth 3933e72318 Added ToBytes and PushBytes methods. Updated magic struct reflection metamethods to handle conversion between Go byte slices and Lua strings. 2016-08-03 22:20:01 -04:00
Shane Hansen d4351ab175 Use map to track gostate rather than slice
Fixes #44 and removes 4 byte per lua State leak.
2016-04-06 17:14:26 -06:00
aarzilli aa40b80e00 Make golua build on Fedora/CentOS
The pkg-config package for lua is different in all architectures and
therefore it can not be used.

Partial revert of fa753832 (update build flags for osx)

Fixes #43
2016-01-22 21:59:23 +01:00
aarzilli c15567389b go fmt 2015-12-24 09:53:31 +01:00
aarzilli 1074bd50a8 Go 1.6 beta 1 compatibility
Note: each new state leaks 4 bytes.

Closes #41
2015-12-24 09:52:58 +01:00
Gabriel Cziprusz fa753832e7 update build flags for osx 2015-09-29 12:36:22 -05:00
admin36 e56d4f2ca0 Add lua.PushGoClosure() method
- fixes issue aarzilli/golua#36
2015-07-31 10:13:26 +02:00
hongzhen 3bbbc0cbc3 Fix build ldflags for freebsd 2014-12-02 03:23:47 +08:00
aarzilli d2aab3166b target to link with liblua.a 2013-12-20 09:32:22 +01:00
aarzilli 82d28bfc6b changed PushString and ToString to work correctly when their argument contains NUL bytes 2013-08-23 19:39:16 +02:00
aarzilli d81fa4ec21 Exposing method to create LuaError objects (fixes Issue 7) 2013-06-17 14:50:15 +02:00
aarzilli e232130935 saving lua stack trace 2013-04-01 12:10:52 +02:00
aarzilli 54de819781 Saving lua return code inside LuaError 2013-04-01 11:09:57 +02:00
aarzilli d8e5c9edda Fixes issue #4 (or at least I hope it does) 2013-03-31 15:34:24 +02:00
aarzilli 9b14eb251b (cherry picked from Steve Donovan fork) configuring cgo directly isntead of using pkg-config (let's see if it works better) 2012-12-22 13:51:05 +01:00
aarzilli bd064a4224 restored lua.State.Error function to existence with a hack 2012-12-21 21:49:19 +01:00
aarzilli a3f4feb19b Changed PushCallback into SetMetaMethod 2012-12-15 07:47:39 +01:00
Harley Laue 4a78253af3 clua_pushcallback has been added to allow definining metamethods with Go functions 2012-12-11 10:41:27 -06:00
aarzilli 4c44a0e394 damn you go!!!! 2012-10-27 19:57:41 +02:00
aarzilli bf83d11664 bugfixes: more longjump madness plus a bug in the garbage collection of pushed user data 2012-10-27 19:50:28 +02: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 ad8ad2e237 returning nil in ToGoStruct/ToGoFunction 2012-10-17 09:58:13 +02:00
aarzilli 40b8d1a1c4 documentation 2012-07-20 15:45:20 +02:00
aarzilli e36b6d303a removed some garbage, collected TODO items, made lauxlib functions into methods 2012-07-18 17:14:12 +02:00
aarzilli 4b79a924c3 go fmt run (and consistent formatting in c-golua.c) 2012-07-18 16:21:38 +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 7dda61b799 Compiles with go1 (barely tested) 2012-03-31 19:08:25 +02:00