feat: add wrenGetSlotListSize and wrenGetSlotListValue API for list element access

Implement two new C API functions to retrieve list metadata and values from Wren slots: wrenGetSlotListSize returns the element count of a list in a slot, and wrenGetSlotListValue returns a captured WrenValue pointer for a specific index. Add corresponding foreign method bindings in test/api/slots.c and test cases in test/api/slots.wren that verify size retrieval and indexed value access on a three-element list. Also add Damien Radtke to AUTHORS.
This commit is contained in:
Damien Radtke
2016-05-19 18:26:01 +00:00
parent 2bb999127a
commit 44be247762
5 changed files with 49 additions and 1 deletions
+1
View File
@@ -16,3 +16,4 @@ Evan Hahn <me@evanhahn.com>
Starbeamrainbowlabs <contact@starbeamrainbowlabs.com>
Alexander Roper <minirop@gmail.com>
Will Speak <will@willspeak.me>
Damien Radtke <damienradtke@gmail.com>