qse/ase/stx/array.c

19 lines
396 B
C
Raw Normal View History

2005-08-15 16:03:57 +00:00
/*
2007-03-22 11:19:28 +00:00
* $Id: array.c,v 1.2 2007-03-22 11:19:28 bacon Exp $
2005-08-15 16:03:57 +00:00
*/
2007-03-22 11:19:28 +00:00
#include <ase/stx/array.h>
#include <ase/stx/object.h>
#include <ase/bas/assert.h>
2005-08-15 16:03:57 +00:00
2007-03-22 11:19:28 +00:00
ase_word_t ase_stx_new_array (ase_stx_t* stx, ase_word_t size)
2005-08-15 16:03:57 +00:00
{
2007-03-22 11:19:28 +00:00
ase_word_t x;
2005-08-15 16:03:57 +00:00
2007-03-22 11:19:28 +00:00
ase_assert (stx->class_array != stx->nil);
x = ase_stx_alloc_word_object (stx, ASE_NULL, 0, ASE_NULL, size);
ASE_STX_CLASS(stx,x) = stx->class_array;
2005-08-15 16:03:57 +00:00
return x;
}