Revision: | 1.6 |
Committed: | Mon Oct 17 18:27:05 2005 UTC (18 years, 8 months ago) by root |
Content type: | text/plain |
Branch: | MAIN |
CVS Tags: | HEAD |
Changes since 1.5: | +5 -9 lines |
Log Message: | *** empty log message *** |
# | Content |
---|---|
1 | #include "cpjit.h" |
2 | |
3 | #include <iostream> |
4 | |
5 | using namespace cpjit; |
6 | using namespace std; |
7 | |
8 | int main (void) |
9 | { |
10 | env e ("/tmp/libcpjit"); |
11 | |
12 | funbuild2<U32, U32 *, U64> fb (e); |
13 | fb << "return a1[0] + a2;"; |
14 | |
15 | fun *f = fb.get (); |
16 | |
17 | U32 i = 3; |
18 | cout << f->call<U32, PTR, U64> (&i, 2) << endl; |
19 | |
20 | return 0; |
21 | } |