This website requires JavaScript.
Explore
Mail
Help
Register
Sign In
Meson
/
wren
Watch
1
Star
0
Fork
0
You've already forked wren
forked from
Mirror/wren
Code
Pull Requests
Activity
Files
d431c2eaa86bb49a7bb5395abafb80d707ec9321
wren
/
test
/
api
/
value.h
4 lines
79 B
C
Raw
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
valueBindMethod
(
const
char
*
signature
)
;
Copy Permalink