This website requires JavaScript.
Explore
Mail
Help
Register
Sign In
Mirror
/
wren
Watch
1
Star
0
Fork
1
You've already forked wren
mirror of
https://github.com/wren-lang/wren.git
synced
2026-01-11 22:28:45 +01:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
Files
functional
wren
/
test
/
api
/
returns.h
4 lines
81 B
C
Raw
Permalink
Normal View
History
Unescape
Escape
Simplify the API tests. Use fewer test suites with more tests in each one since there's so much boilerplate for defining an API test.
2015-08-13 09:09:27 -07:00
#
include
"wren.h"
First pass at implementing foreign classes. Most of the pieces are there: - You can declare a foreign class. - It will call your C function to provide an allocator function. - Whenever a foreign object is created, it calls the allocator. - Foreign methods can access the foreign bytes of an object. - Most of the runtime checking is in place for things like subclassing foreign classes. There is still some loose ends to tie up: - Finalizers are not called. - Some of the error-handling could be better. - The GC doesn't track how much memory a marked foreign object uses.
2015-08-15 12:07:53 -07:00
WrenForeignMethodFn
returnsBindMethod
(
const
char
*
signature
)
;
Reference in New Issue
Copy Permalink