Commit Graph

113 Commits

Author SHA1 Message Date
ThePhD
29f171e124 Style fixes and fixes for templates not usually used by MSVC (broken two-phase lookup killing me here. :c)
Member functions now work as well for set_function. If performance of `new`ing a type ever becomes too large, we can create a custom allocator for the std::shared_ptr's of the types. We can also up-front allocate for the unordered_map as well.
2013-12-02 18:11:25 -05:00
ThePhD
be98a4fdd4 Reformatted to look like Rapptz's style. The following code sample work without error in VS 2013: http://pastebin.com/s4Jbjnht
It'll be up to @Rapptz's to make further changes to make sure GCC compiles, but the core of the functionality is there and my work is essentially done.
Class bindings are up next, but really I don't want to even touch those. :c
2013-12-02 15:42:03 -05:00
ThePhD
f67b21b525 The solution technically works, but there's some stack corruption going on somewhere that I can quite track down, even when calling a void function with no parameters. I'll have to look into it... 2013-12-02 14:22:51 -05:00
Rapptz
83cfcc3694 Add polymorphic lua object type 2013-11-30 21:12:50 -05:00
Rapptz
b80e77b9c2 Add using statements for basic EnableIf and DisableIf 2013-11-29 17:57:46 -05:00
Rapptz
8ed913e8c1 Allow specification of index in get<T> function 2013-11-28 22:51:51 -05:00
Rapptz
796fd6903e Switched pop to get and wrote a new pop<T> function 2013-11-28 18:27:27 -05:00
Rapptz
4f714539d6 Make reference pushing take an actual reference to the object instead of by value 2013-11-26 05:07:10 -05:00
Rapptz
12aac41b9e Readd support for types that inherit from reference 2013-11-26 04:05:04 -05:00
Rapptz
ecb44462af Revert "Allow push to work with types that inherit from reference"
This reverts commit f2d72f7bb2.
2013-11-26 01:21:53 -05:00
HFCPC
f2d72f7bb2 Allow push to work with types that inherit from reference 2013-11-25 16:44:05 -05:00
Rapptz
45f801f740 make pop<bool> compare to 0 instead of casting to bool 2013-11-25 06:14:46 -05:00
Rapptz
f775790c2d Initial commit 2013-11-25 04:56:27 -05:00