summaryrefslogtreecommitdiff
path: root/src/tests/efl_js/benchmark_object.eo
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2014-09-01 15:08:49 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2015-12-23 23:59:40 -0200
commita3db1dddd3ba67c81118f7f2c0bc753dc8aac551 (patch)
tree233ee1be7bfa299bff560207135d20940c4e411f /src/tests/efl_js/benchmark_object.eo
parent1a3cb45f1cc7fdf8d481879e6bd7349d9cb0b3fa (diff)
efl-js: JavaScript Eolian binding
To configure efl sources with bindings to use in nodejs add ––with-js=nodejs in configure flags to generate node files $ configure --with-js=nodejs and compile normally with: $ make $ make install To use, you have to require efl: efl = require('efl') The bindings is divided in two parts: generated and manually written. The generation uses the Eolian library for parsing Eo files and generate C++ code that is compiled against V8 interpreter library to create a efl.node file that can be required in a node.js instance. @feature
Diffstat (limited to 'src/tests/efl_js/benchmark_object.eo')
-rw-r--r--src/tests/efl_js/benchmark_object.eo24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/tests/efl_js/benchmark_object.eo b/src/tests/efl_js/benchmark_object.eo
new file mode 100644
index 0000000000..34dd142039
--- /dev/null
+++ b/src/tests/efl_js/benchmark_object.eo
@@ -0,0 +1,24 @@
1class Benchmark_Object (Eo.Base)
2{
3 legacy_prefix: null;
4 data: null;
5 methods {
6 emptyarg {
7 }
8 onearg {
9 params { one: int; }
10 }
11 twoarg {
12 params { one: int; two: int; }
13 }
14 tenarg {
15 params { one: int; two: int; three: int; four: int; five: int; six: int; seven: int; eight: int; nine: int; ten: int; }
16 }
17 onecomplexarg {
18 params { one: list<int>*; }
19 }
20 tencomplexarg {
21 params { one: list<int>*; two: list<int>*; three: list<int>*; four: list<int>*; five: list<int>*; six: list<int>*; seven: list<int>*; eight: list<int>*; nine: list<int>*; ten: list<int>*; }
22 }
23 }
24}