Debian Codegraph @

include/ruby/backward/2/rmodule.h

raw
1 #ifndef RUBY_BACKWARD2_RMODULE_H /*-*-C++-*-vi:se ft=cpp:*/
2 #define RUBY_BACKWARD2_RMODULE_H
3 /**
4 * @author Ruby developers <[email protected]>
5 * @copyright This file is a part of the programming language Ruby.
6 * Permission is hereby granted, to either redistribute and/or
7 * modify this file, provided that the conditions mentioned in the
8 * file COPYING are met. Consult the file for details.
9 * @warning Symbols prefixed with either `RBIMPL` or `rbimpl` are
10 * implementation details. Don't take them as canon. They could
11 * rapidly appear then vanish. The name (path) of this header file
12 * is also an implementation detail. Do not expect it to persist
13 * at the place it is now. Developers are free to move it anywhere
14 * anytime at will.
15 * @note To ruby-core: remember that this header can be possibly
16 * recursively included from extension libraries written in C++.
17 * Do not expect for instance `__VA_ARGS__` is always available.
18 * We assume C99 for ruby itself but we don't assume languages of
19 * extension libraries. They could be written in C++98.
20 * @brief Orphan macros.
21 *
22 * These macros seems broken since at least 2011. Nobody (except ruby itself
23 * who is implementing the internals) could have used those macros for a while.
24 * Kept public as-is here to keep some theoretical backwards compatibility.
25 */
26 #define RMODULE_IV_TBL(m) RCLASS_IV_TBL(m)
27 #define RMODULE_CONST_TBL(m) RCLASS_CONST_TBL(m)
28 #define RMODULE_M_TBL(m) RCLASS_M_TBL(m)
29 #define RMODULE_SUPER(m) RCLASS_SUPER(m)
30
31 #if defined(__GNUC__)
32 # warning RMODULE_* macros are deprecated
33 #elif defined(_MSC_VER)
34 # pragma message("warning: RMODULE_* macros are deprecated")
35 #endif
36 #endif /* RUBY_BACKWARD2_RMODULE_H */