Added Slice as it's own type info in userland
This commit is contained in:
@@ -6345,6 +6345,7 @@ static void define_builtin_compile_vars(CodeGen *g) {
|
||||
const TypeTableEntryId id = type_id_at_index(i);
|
||||
buf_appendf(contents, " %s,\n", type_id_name(id));
|
||||
}
|
||||
buf_appendf(contents, " Slice,\n");
|
||||
buf_appendf(contents, "};\n\n");
|
||||
}
|
||||
{
|
||||
@@ -6357,6 +6358,7 @@ static void define_builtin_compile_vars(CodeGen *g) {
|
||||
" Int: Int,\n"
|
||||
" Float: Float,\n"
|
||||
" Pointer: Pointer,\n"
|
||||
" Slice: Slice,\n"
|
||||
" Array: Array,\n"
|
||||
" Struct: Struct,\n"
|
||||
" FloatLiteral: void,\n"
|
||||
@@ -6392,6 +6394,8 @@ static void define_builtin_compile_vars(CodeGen *g) {
|
||||
" child: type,\n"
|
||||
" };\n"
|
||||
"\n"
|
||||
" pub const Slice = Pointer;\n"
|
||||
"\n"
|
||||
" pub const Array = struct {\n"
|
||||
" len: usize,\n"
|
||||
" child: type,\n"
|
||||
|
||||
Reference in New Issue
Block a user