Skip to content

Commit

Permalink
[DOC] Document RbConfig::SIZEOF
Browse files Browse the repository at this point in the history
  • Loading branch information
XrXr committed Jul 14, 2024
1 parent fac271a commit cddd480
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions template/sizes.c.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,20 @@ conditions = {
#endif

% end

/*
* Document-const: SIZEOF
*
* A Hash with the byte size of \C types available to the 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::SIZEOF.fetch_values('long', 'void*') # => [4, 8]
*
*/

extern void Init_limits(void);
void
Init_sizeof(void)
Expand Down

0 comments on commit cddd480

Please sign in to comment.