2025-08-09 19:57:42 +01:00
|
|
|
#include <blue/ds/array.h>
|
|
|
|
|
#include <blue/ds/number.h>
|
2024-10-24 21:33:19 +01:00
|
|
|
#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_array_iterator it;
|
|
|
|
|
b_array_foreach(&it, array)
|
|
|
|
|
{
|
|
|
|
|
printf("object %p\n", it.value);
|
|
|
|
|
}
|
|
|
|
|
|
2025-10-19 21:02:52 +01:00
|
|
|
b_array_unref(array);
|
2024-10-24 21:33:19 +01:00
|
|
|
return 0;
|
|
|
|
|
}
|