зеркало из https://github.com/github/ruby.git
[DOC] Document RbConfig::LIMITS
This commit is contained in:
Родитель
9bf1049dfb
Коммит
3531d22918
|
@ -51,6 +51,20 @@
|
|||
# include <float.h>
|
||||
#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
|
||||
Init_limits(void)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче