blob: cd88b73c5ca822a5ec3a4a8cef7f75119c08ac73 [file] [log] [blame] [edit]
// Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <assert.h>
#include <setjmp.h>
#include <stdint.h>
#include "setjmp_impl.h"
// TODO(fxbug.dev/125629): The size has been expanded to accommodate a checksum
// word, but this is not yet used until callers can be expected to use the new
// larger size.
#define JB_COUNT_UNUSED 1
static_assert(sizeof(__jmp_buf) == sizeof(uint64_t) * (JB_COUNT + JB_COUNT_UNUSED),
"fix __jmp_buf definition");