2020-04-10 01:11:40 -04:00
|
|
|
#ifndef RUBY_TOPLEVEL_ASSERT_H /*-*-C-*-vi:se ft=c:*/
|
|
|
|
#define RUBY_TOPLEVEL_ASSERT_H
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @author Ruby developers <ruby-core@ruby-lang.org>
|
|
|
|
* @copyright This file is a part of the programming language Ruby.
|
|
|
|
* Permission is hereby granted, to either redistribute and/or
|
|
|
|
* modify this file, provided that the conditions mentioned in the
|
|
|
|
* file COPYING are met. Consult the file for details.
|
|
|
|
*/
|
2019-07-14 00:05:16 -04:00
|
|
|
#include "ruby/assert.h"
|
2016-01-22 03:33:55 -05:00
|
|
|
|
2018-01-02 01:41:43 -05:00
|
|
|
#if !defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L)
|
|
|
|
/* C89 compilers are required to support strings of only 509 chars. */
|
|
|
|
/* can't use RUBY_ASSERT for such compilers. */
|
|
|
|
#include <assert.h>
|
|
|
|
#else
|
2016-01-22 03:33:55 -05:00
|
|
|
#undef assert
|
|
|
|
#define assert RUBY_ASSERT
|
2018-01-02 01:41:43 -05:00
|
|
|
#endif
|
2020-04-10 01:11:40 -04:00
|
|
|
#endif /* RUBY_TOPLEVEL_ASSERT_H */
|