Dmitry Ng
a518a95fc4
Updated lua environment to target build
2021-03-30 18:15:01 +03:00
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
24dee68d5b
fix new state crash
2017-08-18 09:19:08 -07: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
aarzilli
fb8ef8637b
Insured that code that uses the old version of ArgCheck does not compile
...
Added Pierre Neidhardt to contributors
2015-12-01 08:49:36 +01:00
Pierre Neidhardt
b30b2c62c6
luaL_argcheck: Raise an error when condition is _not_ true
...
See http://www.lua.org/manual/5.1/manual.html#luaL_argcheck .
2015-11-30 11:17:47 +11: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
Viktor Palmkvist
5c5d9af6c1
Fix #26
...
Changes the type of the second argument to CheckType to be the more correct LuaValType, for consistency with the rest of the library.
2014-08-20 13:06:43 +02:00
aarzilli
1c344269a2
fix issue #22
2014-01-17 08:31:09 +01: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
6836c92f77
replaced example allocator in example/alloc.go with one that isn't broken
2013-08-06 14:17:33 +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
cb419472bd
collect all consts under a single const statement
2013-03-31 16:53:48 +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
1ef48b4775
added Lua 5.1 headers (cherry picked Steve Donovan commit)
2012-12-22 13:32:43 +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
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
2e01ce2dd6
some testing
2012-10-17 09:57:17 +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
e210009260
clua_isgointerface
2012-06-28 13:26:51 +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
4a2a3754bd
Merging https://github.com/aarzilli/golua/pull/1 from ruitao (thanks)
2012-06-24 15:21:14 +02:00
aarzilli
7dda61b799
Compiles with go1 (barely tested)
2012-03-31 19:08:25 +02:00