Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mcjit windows bug?? #298

Open
digego opened this issue Jul 17, 2017 · 0 comments
Open

mcjit windows bug?? #298

digego opened this issue Jul 17, 2017 · 0 comments

Comments

@digego
Copy link
Owner

digego commented Jul 17, 2017

(bind-type Shape <i64,<double,double,double,double>*>)

(bind-func success_rect
(lambda (w:double x:double y:double z:double)
(println "success:" w x y z)
w))

(bind-func fail_rect
(lambda ()
(println "fail!")
0.0))

(bind-func test_rect:[double,Shape*,[double,double,double,double,double],[double]]*
(lambda (obj success fail)
(if (= (tref obj 0) 2)
(let ((cir (tref obj 1)))
(success (tref cir 0) (tref cir 1) (tref cir 2) (tref cir 3)))
(fail))))

(bind-func test
(lambda ()
(let ((s (Shape 2 (tuple_ref 1.0 2.0 3.0 4.0))))
(test_rect s success_rect fail_rect)
void)))

(test)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant