22 lines
417 B
C
22 lines
417 B
C
#include <blue/ds/array.h>
|
|
#include <blue/ds/number.h>
|
|
#include <stdio.h>
|
|
|
|
int main(void)
|
|
{
|
|
b_array *array = b_array_create();
|
|
b_array_append(array, B_RV_INT(32));
|
|
b_array_append(array, B_RV_INT(64));
|
|
b_array_append(array, B_RV_INT(128));
|
|
|
|
b_iterator *it = b_iterator_begin(array);
|
|
b_foreach_ptr(b_object, obj, it)
|
|
{
|
|
printf("object %p\n", obj);
|
|
}
|
|
b_iterator_unref(it);
|
|
|
|
b_array_unref(array);
|
|
return 0;
|
|
}
|