diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-08-16 22:42:50 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-08-16 22:42:50 -0700 |
| commit | 37d167f6e0e26e8dc57950cb0fa1bfa630036521 (patch) | |
| tree | 8b947d065ef12b189cb7a4c880c0009e7a6cd2b8 /std/debug.zig | |
| parent | 0ae9023832584e256aa3b6df0f0829026141d21a (diff) | |
| download | zig-37d167f6e0e26e8dc57950cb0fa1bfa630036521.tar.gz zig-37d167f6e0e26e8dc57950cb0fa1bfa630036521.zip | |
std: conform to style guidelines
Diffstat (limited to 'std/debug.zig')
| -rw-r--r-- | std/debug.zig | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/std/debug.zig b/std/debug.zig index 77213b593e..d1d52f677a 100644 --- a/std/debug.zig +++ b/std/debug.zig @@ -6,10 +6,10 @@ pub fn assert(b: bool) { } pub fn printStackTrace() { - var maybe_fp: ?&const u8 = @frame_address(); + var maybe_fp: ?&const u8 = @frameAddress(); while (true) { const fp = maybe_fp ?? break; - const return_address = *(&const usize)(usize(fp) + @sizeof(usize)); + const return_address = *(&const usize)(usize(fp) + @sizeOf(usize)); %%io.stderr.print_u64(return_address); %%io.stderr.printf("\n"); maybe_fp = *(&const ?&const u8)(fp); @@ -17,9 +17,9 @@ pub fn printStackTrace() { } pub var global_allocator = Allocator { - .alloc_fn = globalAlloc, - .realloc_fn = globalRealloc, - .free_fn = globalFree, + .allocFn = globalAlloc, + .reallocFn = globalRealloc, + .freeFn = globalFree, .context = null, }; |
