Bill Welden
77dd6c9e83
First fully functional automatic downcasting implementation.
2013-04-12 14:22:26 +03:00
Bill Welden
5fba40c9d8
Forward slashes!
2013-04-12 14:22:24 +03:00
Bill Welden
119ab2f1c4
Better error reporting
...
Fixed demangling routine and added it to RTL
New __typeName method to retrieve char* type name from type info
2013-04-12 14:22:23 +03:00
Bill Welden
51cdfb5fdb
Fix a jshint issue
2013-04-12 14:22:22 +03:00
Bill Welden
03d90a32db
More work toward dynamic downcasting of pointers.
2013-04-12 14:22:20 +03:00
mey
1276f9f5b7
Some additional clean up.
2013-04-12 14:22:19 +03:00
mey
c9eb75d64a
adding function to convert JS array to vector.
2013-04-12 14:22:18 +03:00
mey
b5d84da03b
Removing ability to return by reference: dangerous.
2013-04-12 14:22:16 +03:00
mey
15603bbafc
Switching vector class_ instead of bound as an explicit type.
2013-04-12 14:22:15 +03:00
jinsuck
026a4d49e4
support creating val with null (needed for sending null parameter to a
...
WebGL function)
2013-04-12 14:22:14 +03:00
Todd Lee
73d2de4105
use simpler way to get length of an array
2013-04-12 14:22:12 +03:00
jinsuck
88b63143fa
Upgrade libcxx from 11-month-ago version to the latest. The new version has memory
...
leak fixed in the weak_ptr. Note: to make this compile, I made two
modifications (actually copied from the previous version) --
system/include/libcxx/__locale line 28 and system/include/libcxx/locale
line 229.
2013-04-12 14:22:11 +03:00
Todd Lee
d161fccc9b
added two utility functions to emval.
...
- check if a given key exists.
- return length of an array.
2013-04-12 14:22:09 +03:00
Bill Welden
1b9928686e
Automatic downcasting of function return values (first cut -- multiple inheritance still not supported).
2013-04-12 14:22:08 +03:00
Todd Lee
ab18c1107d
there were some incorrect handling of memory alloc/dealloc when passing around vector of smart pointer (or whatever type that needs manual deletion)
2013-04-12 14:22:07 +03:00
Bill Welden
50c29dc01e
Commit hook fix.
2013-04-12 14:22:05 +03:00
Bill Welden
ae311d2e8d
Allow raw pointer return values (requires allow_raw_pointer<ret_val>)
2013-04-12 14:22:04 +03:00
Todd Lee
87b760c334
Add support for std::vector.
2013-04-12 14:22:03 +03:00
mey
d0de75a622
Exposing std::function to javascript.
2013-04-12 14:22:01 +03:00
Todd Lee
ad45b65333
Add support for std::vector.
2013-04-12 14:22:00 +03:00
Chad Austin
8b7abef9db
Returning an empty shared_ptr returns null to JavaScript. Similarly, passing null into a shared_ptr creates an empty shared_ptr.
2013-04-12 14:21:58 +03:00
Bill Welden
338d59e81e
More files for upcast/downcast commit.
2013-04-12 14:21:57 +03:00
mey
61b2ff66ff
JSHint corrections.
2013-04-12 14:21:55 +03:00
mey
e237bfd79d
Removing Functor as a specific type; folding operator call into the class definition.
2013-04-12 14:21:54 +03:00
jinsuck
0d745fa116
1) add a method to run global javascript function on val 2) fix a bug to
...
return val from interface wrapper
2013-04-12 14:21:53 +03:00
jinsuck
778b8eb983
add a syntactic sugar to for cloning to a shared pointer of interface
...
wrapper
2013-04-12 14:21:51 +03:00
jinsuck
2c34b6dc6c
Allow constructing interface wrapper from existing interface object
2013-04-12 14:21:50 +03:00
mey
69f2f335d3
Fleshing out functors and expanding them.
2013-04-12 14:21:49 +03:00
mey
8ff84649ad
Merging.
2013-04-12 14:21:47 +03:00
mey
01212260c2
Merging.
2013-04-12 14:21:46 +03:00
mey
d622aa9cab
Exposing std::function to javascript.
2013-04-12 14:21:45 +03:00
Todd Lee
6326240227
This enables passing smart ptr as an element of val.
2013-04-12 14:21:43 +03:00
Llorens Marti Garcia
d90ef85c03
Fix on EnumBindingType
2013-04-12 14:21:42 +03:00
Todd Lee
3c5dead674
Add support for std::vector.
2013-04-12 14:21:41 +03:00
Chad Austin
565823a14a
Returning an empty shared_ptr returns null to JavaScript. Similarly, passing null into a shared_ptr creates an empty shared_ptr.
2013-04-12 14:21:39 +03:00
Chad Austin
848bdefa4e
std::string's WireType::destroy should be free(), not delete.
2013-04-12 14:21:38 +03:00
jinsuck
ebbe879255
to get string from emval
2013-04-12 14:21:36 +03:00
Chad Austin
8691fb1726
Allow multiple pointer arguments and allow multiple functions taking the same raw pointer type
2013-04-12 14:21:35 +03:00
Chad Austin
6014feed71
Add support for raw pointers to embind
2013-04-12 14:21:34 +03:00
Chad Austin
3f20ded152
jshint
2013-04-12 14:21:32 +03:00
Chad Austin
8a4997cf16
Kill some duplication
2013-04-12 14:21:31 +03:00
Chad Austin
eb5226e16c
Class static methods were downright broken.
2013-04-12 14:21:29 +03:00
Chad Austin
3703d2b5cd
Checkpoint work towards exposing call policies for raw pointers.
2013-04-12 14:21:28 +03:00
Todd Lee
db7397e72e
There can be an empty shared ptr. It is totally valid.
2013-04-12 14:21:27 +03:00
Chad Austin
e71c512ef8
Add validation that prevents registering the same type multiple times (either by name or type ID)
2013-04-12 14:21:25 +03:00
Chad Austin
6e2ce5357f
Add the ability to extend the prototype of native classes from JavaScript.
2013-04-12 14:21:24 +03:00
Chad Austin
df6ba03eed
Fix several ownership/lifetime bugs in argument wire types
2013-04-12 14:21:22 +03:00
Chad Austin
1c0c7be7aa
Some minor generated code size reductions.
2013-04-12 14:21:21 +03:00
Todd Lee
f91f1ddf37
removed duplicate code / unnecessary code
2013-04-12 14:21:20 +03:00
Todd Lee
d0bf1b0aea
Handle shared_ptr correctly.(keep underlying pointer point to the same address)
...
There was some global variable dependency. These bleed thru tests and affected test result. Adding a way to reset this state.
2013-04-12 14:21:18 +03:00