Commit Graph

127 Commits

Author SHA1 Message Date
Lynix 0740ee456a Lua/LuaCoroutine: Fixed movement assignation operator 2018-12-19 22:08:50 +01:00
Lynix a3fd69a453 Lua/LuaState: Add RawEqual function 2018-11-14 23:54:31 +01:00
Lynix bf37688b11 Lua/LuaState: Fix std::vector query for good 2018-06-24 21:49:51 +02:00
Lynix 456a9258da Lua/LuaState: Fix std::vector query code 2018-06-24 20:29:20 +02:00
S6066 da044bd21c Make lua binding for std::vector (#164)
* Make LuaImplQueryArg impl for std::vector

* Fix shadowed argument

* Make unit tests

* Bugfix

* Bugfix, for real this time

* We didn't need these tests anyway

* Revert "We didn't need these tests anyway"

This reverts commit be88d4496a9cf62beb4d3ce1f30825589a4bacb2.

* Add change to changelog

* Update ChangeLog.md

* Bugfix & use CallOnExit to pop stack
2018-06-17 19:04:15 +02:00
S6066 f5645833df Fix unwanted behavior with universal references (#165)
* Remove forced template

* Remove useless PushInstance overload
2018-06-06 00:25:59 +02:00
Lynix f2c16f916a Lua/LuaState: Add error handling methods 2018-05-21 19:31:19 +02:00
Lynix 8b6311de63 Lua/LuaState: Add Load methods 2018-05-13 14:42:27 +02:00
Jérôme Leclercq 03e976993f Revert "Make LuaImplQueryArg impl for std::vector (#162)"
This reverts commit 24ec816762.
2018-04-30 15:00:45 +02:00
S6066 24ec816762 Make LuaImplQueryArg impl for std::vector (#162) 2018-04-30 14:51:11 +02:00
Lynix 5380b6a41b Lua/LuaInstance: Move library initializations to LoadLibraries 2018-01-20 14:20:46 +01:00
Lynix 19580c859f Merge branch 'master' of https://github.com/DigitalPulseSoftware/NazaraEngine 2018-01-16 21:30:21 +01:00
germinolegrand 1e55c4d9e9 Prerequisites instead of Prerequesites (typo) #152 (#153) 2018-01-16 12:23:01 +01:00
Lynix e9cba3ab6c Lua/LuaClass: Fix case where lua stack is not empty 2018-01-14 18:04:54 +01:00
Lynix f5df0eb056 Lua/LuaInstance: Fix movement 2017-12-16 19:09:01 +01:00
Jérôme Leclercq 046926e4d4 Fix compilation 2017-11-21 12:39:51 +01:00
Jérôme Leclercq 3589a2bc8e Core/Flags: Reworked Flags class 2017-11-21 12:26:22 +01:00
Gawaboumga bbac0838dd Include-What-You-Use (#137)
* IWYU Core

* IWYU Noise

* IWYU Utility

* IWYU Audio

* IWYU Platform

* IWYU Lua

* IWYU Network

* IWYU Physics2D

* IWYU Physics3D

* IWYU Renderer

* IWYU Graphics

* IWYU NDKServer

* IWYU Fix

* Try to fix compilation

* Other fixes
2017-10-01 11:17:09 +02:00
Jérôme Leclercq 305a72a7d2 Lua/LuaState: Fix movement not stealing pointer 2017-09-04 10:05:23 +02:00
Jérôme Leclercq b64ab862fe Fix warnings 2017-07-27 14:39:48 +02:00
Jérôme Leclercq 5c63d30545 Lua/LuaInstance: Fix typo 2017-06-15 17:08:24 +02:00
Lynix 7875854e7d Lua/Binding: Fix unsigned integer binding 2017-06-12 14:42:36 +02:00
Lynix 78182502e3 Lua/LuaInstance: Fix missing memory/time methods 2017-06-10 22:29:17 +02:00
Lynix 4ce7db09d6 Lua/LuaCoroutine: Fix inline include 2017-06-09 01:47:15 +02:00
Jérôme Leclercq 01edc4fb21 Add coroutine support (WIP) 2017-06-08 15:53:17 +02:00
Jérôme Leclercq a8129b218b Refactor LuaInstance to prepare coroutine handling 2017-06-07 21:18:07 +02:00
Jérôme Leclercq 30a4e20ee5 Lua/LuaInstance: Expose some raw functions 2017-05-29 18:01:31 +02:00
Jérôme Leclercq ca4a93c4af Fix compilation error on Linux 2017-04-05 15:57:54 +02:00
Lynix bb272c57f5 Lua/LuaInstance: Fix movement 2017-03-30 18:43:05 +02:00
DrLynix f383eca19a Update copyright year 2017-01-20 12:58:35 +01:00
Lynix e9061a6cf8 Core/Flags: Rename EnableFlagsOperators to EnumAsFlags 2016-12-12 15:07:16 +01:00
Lynix 71408d7c3b Lua/LuaInstance: Fix LuaImplReplyVal for enum flags 2016-11-27 14:26:39 +01:00
Lynix 649001b696 Lua/LuaInstance: Fix LuaImplQueryArg for flags enums 2016-11-27 14:07:18 +01:00
Lynix 1a5617bc55 Lua/LuaInstance: Add conversion operator to UInt32 2016-11-27 13:21:04 +01:00
Jérôme Leclercq e087129d4a Fix many errors and warnings found out by MinGW 2016-11-04 18:14:52 +01:00
Lynix 9206cf65b5 Lua/LuaInstance: Optimize the T& method(...) case
Instead of instancing a new T from Lua, the original userdata is now
returned
2016-10-27 11:28:34 +02:00
Lynix 5ffc5a8784 Lua/LuaClass: Don't remove instance from the Lua stack
The instance Lua entry now remains as the first index, shifting all the
parameters indexes by 1
2016-10-27 11:22:35 +02:00
Lynix b5a32d7eb2 Lua/LuaClass: Fix static methods 2016-10-25 13:14:16 +02:00
Lynix fa7d6a10b0 Lua/LuaInstance: Fix PushInstance memory corruption
Whoops
2016-10-25 13:10:12 +02:00
Lynix bf31ee289e Lua/LuaInstance: Add mutli-arg Push() 2016-10-24 14:25:02 +02:00
Lynix 46e4bb41b5 Lua/LuaClass: Fix global table 2016-10-24 13:45:42 +02:00
Lynix 55a010e0de Lua/LuaClass: Fix compilation 2016-10-21 17:39:04 +02:00
Lynix 511ded215b Lua/LuaClass: Fix compilation 2016-10-21 17:32:20 +02:00
Lynix d6b6e26d31 Lua/LuaClass: Reference the destructor only if the class has one
Allows to bind classes with deleted destructors
2016-10-21 17:24:45 +02:00
Lynix 3f7f12b625 Lua/LuaClass: Refactor Register() implementation 2016-10-21 16:50:49 +02:00
Lynix 0c6f7131a6 Lua/LuaInstance: Fix warning when using default parameters 2016-10-21 01:58:37 +02:00
Lynix 3c29bfe516 Lua/LuaInstance: Make ArgCheck and ArgError const 2016-10-20 23:44:12 +02:00
Lynix baf4cb0e16 Lua/LuaClass: Add Reset method and default constructor 2016-10-19 22:48:46 +02:00
Lynix 64785dca17 Lua/LuaInstance: Fix move constructor/operator
Former-commit-id: 172608ac5683f594243248017e3abf7f0e2066c9 [formerly d5deec47e4ab121f61ffe7aaea5aa6a7f6774c9e] [formerly 52e490fac2b7003bf64b4eac0cf7e36ce4da46e5 [formerly b64145eecf4cb5c2db1e0e2e780440af8bcb05e7]]
Former-commit-id: ad3eec1403fdec906a6495c675dee0407cb75d9b [formerly 3f76ca985a58fcf13c248d438538139e843d05f7]
Former-commit-id: 3789b4eb068b2fece669f3a5804d0015ba2e806f
2016-10-04 17:08:45 +02:00
Lynix d7b7135e27 Lua/LuaClass: Fix argument count via GetStackTop (Close #75)
Former-commit-id: 3a0e60a6e7ec7c85ff5f179cc84a468d8c0682f4 [formerly f0712658e69c7ced1fa46f8878f96776d6b36567] [formerly 3035b072473d17863c3c0f6950451ccf582c107e [formerly fe3cbf8a2cf87cf6cc3d3e8577011159bff04387]]
Former-commit-id: df8812d712d28efc2bc83258df53dcb21bbb4b2d [formerly 6d2d8773c96d406690bd5cfc19cef7d1706ff6fc]
Former-commit-id: 461fec0cc2dd99690a3de10436730514712beb73
2016-10-03 19:49:43 +02:00