mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Document RbConfig::LIMITS
This commit is contained in:
parent
9bf1049dfb
commit
3531d22918
1 changed files with 14 additions and 0 deletions
|
@ -51,6 +51,20 @@
|
||||||
# include <float.h>
|
# include <float.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Document-const: LIMITS
|
||||||
|
*
|
||||||
|
* A Hash with the bounds of numeric types available to the \C compiler
|
||||||
|
* used to build Ruby. To access this constant, first run
|
||||||
|
* <code>require 'rbconfig/sizeof'</code>.
|
||||||
|
*
|
||||||
|
* require 'rbconfig/sizeof'
|
||||||
|
* RUBY_PLATFORM # => "x64-mingw-ucrt"
|
||||||
|
* RbConfig::LIMITS.fetch_values('FIXNUM_MAX', 'LONG_MAX')
|
||||||
|
* # => [1073741823, 2147483647]
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
void
|
void
|
||||||
Init_limits(void)
|
Init_limits(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue