Skip to content

Commit

Permalink
Mv Error into coro.zig
Browse files Browse the repository at this point in the history
  • Loading branch information
rsepassi committed Sep 21, 2023
1 parent 63a641c commit be85600
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
6 changes: 5 additions & 1 deletion src/coro.zig
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ const debug_log_level = libcoro_options.debug_log_level;

// Public API
// ============================================================================
pub const Error = @import("errors.zig").Error;
pub const Error = error{
StackTooSmall,
StackOverflow,
SuspendFromMain,
};
pub const StackT = []align(base.stack_alignment) u8;
pub const stack_alignment = base.stack_alignment;
pub const default_stack_size = libcoro_options.default_stack_size;
Expand Down
2 changes: 1 addition & 1 deletion src/coro_base.zig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const std = @import("std");
const builtin = @import("builtin");
const Error = @import("errors.zig").Error;
const Error = @import("coro.zig").Error;

const ArchInfo = struct {
num_registers: usize,
Expand Down
5 changes: 0 additions & 5 deletions src/errors.zig

This file was deleted.

0 comments on commit be85600

Please sign in to comment.