Merge pull request #2991 from shyouhei/ruby.h
[ruby.git] / include / ruby / 3 / arithmetic / gid_t.h
blobebdd4d21f696015f23d3249b271a4018acf492f2
1 /** \noop-*-C++-*-vi:ft=cpp
2 * @file
3 * @author Ruby developers <ruby-core@ruby-lang.org>
4 * @copyright This file is a part of the programming language Ruby.
5 * Permission is hereby granted, to either redistribute and/or
6 * modify this file, provided that the conditions mentioned in the
7 * file COPYING are met. Consult the file for details.
8 * @warning Symbols prefixed with either `RUBY3` or `ruby3` are
9 * implementation details. Don't take them as canon. They could
10 * rapidly appear then vanish. The name (path) of this header file
11 * is also an implementation detail. Do not expect it to persist
12 * at the place it is now. Developers are free to move it anywhere
13 * anytime at will.
14 * @note To ruby-core: remember that this header can be possibly
15 * recursively included from extension libraries written in C++.
16 * Do not expect for instance `__VA_ARGS__` is always available.
17 * We assume C99 for ruby itself but we don't assume languages of
18 * extension libraries. They could be written in C++98.
19 * @brief Arithmetic conversion between C's `gid_t` and Ruby's.
21 #include "ruby/3/config.h"
22 #include "ruby/3/arithmetic/long.h"
24 #ifndef GIDT2NUM
25 # define GIDT2NUM RB_LONG2NUM
26 #endif
28 #ifndef NUM2GIDT
29 # define NUM2GIDT RB_NUM2LONG
30 #endif