GRAYBYTE WORDPRESS FILE MANAGER3561

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/alt/ruby30/include/ruby/internal/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/ruby30/include/ruby/internal//newobj.h
#ifndef RBIMPL_NEWOBJ_H                              /*-*-C++-*-vi:se ft=cpp:*/
#define RBIMPL_NEWOBJ_H
/**
 * @file
 * @author     Ruby developers <ruby-core@ruby-lang.org>
 * @copyright  This  file  is   a  part  of  the   programming  language  Ruby.
 *             Permission  is hereby  granted,  to  either redistribute  and/or
 *             modify this file, provided that  the conditions mentioned in the
 *             file COPYING are met.  Consult the file for details.
 * @warning    Symbols   prefixed  with   either  `RBIMPL`   or  `rbimpl`   are
 *             implementation details.   Don't take  them as canon.  They could
 *             rapidly appear then vanish.  The name (path) of this header file
 *             is also an  implementation detail.  Do not expect  it to persist
 *             at the place it is now.  Developers are free to move it anywhere
 *             anytime at will.
 * @note       To  ruby-core:  remember  that   this  header  can  be  possibly
 *             recursively included  from extension  libraries written  in C++.
 *             Do not  expect for  instance `__VA_ARGS__` is  always available.
 *             We assume C99  for ruby itself but we don't  assume languages of
 *             extension libraries. They could be written in C++98.
 * @brief      Defines #NEWOBJ.
 */
#include "ruby/internal/cast.h"
#include "ruby/internal/core/rbasic.h"
#include "ruby/internal/dllexport.h"
#include "ruby/internal/fl_type.h"
#include "ruby/internal/special_consts.h"
#include "ruby/internal/value.h"
#include "ruby/assert.h"

#define RB_NEWOBJ(obj,type) type *(obj) = RBIMPL_CAST((type *)rb_newobj())
#define RB_NEWOBJ_OF(obj,type,klass,flags) type *(obj) = RBIMPL_CAST((type *)rb_newobj_of(klass, flags))

#define NEWOBJ     RB_NEWOBJ
#define NEWOBJ_OF  RB_NEWOBJ_OF /* core has special NEWOBJ_OF() in internal.h */
#define OBJSETUP   rb_obj_setup /* use NEWOBJ_OF instead of NEWOBJ()+OBJSETUP() */
#define CLONESETUP rb_clone_setup
#define DUPSETUP   rb_dup_setup

RBIMPL_SYMBOL_EXPORT_BEGIN()
VALUE rb_newobj(void);
VALUE rb_newobj_of(VALUE, VALUE);
VALUE rb_obj_setup(VALUE obj, VALUE klass, VALUE type);
VALUE rb_obj_class(VALUE);
VALUE rb_singleton_class_clone(VALUE);
void rb_singleton_class_attached(VALUE,VALUE);
void rb_copy_generic_ivar(VALUE,VALUE);
RBIMPL_SYMBOL_EXPORT_END()

static inline void
rb_clone_setup(VALUE clone, VALUE obj)
{
    RBIMPL_ASSERT_OR_ASSUME(! RB_SPECIAL_CONST_P(obj));
    RBIMPL_ASSERT_OR_ASSUME(! RB_SPECIAL_CONST_P(clone));

    const VALUE flags = RUBY_FL_PROMOTED0 | RUBY_FL_PROMOTED1 | RUBY_FL_FINALIZE;
    rb_obj_setup(clone, rb_singleton_class_clone(obj),
                 RB_FL_TEST_RAW(obj, ~flags));
    rb_singleton_class_attached(RBASIC_CLASS(clone), clone);
    if (RB_FL_TEST(obj, RUBY_FL_EXIVAR)) rb_copy_generic_ivar(clone, obj);
}

static inline void
rb_dup_setup(VALUE dup, VALUE obj)
{
    RBIMPL_ASSERT_OR_ASSUME(! RB_SPECIAL_CONST_P(obj));
    RBIMPL_ASSERT_OR_ASSUME(! RB_SPECIAL_CONST_P(dup));

    rb_obj_setup(dup, rb_obj_class(obj), RB_FL_TEST_RAW(obj, RUBY_FL_DUPPED));
    if (RB_FL_TEST(obj, RUBY_FL_EXIVAR)) rb_copy_generic_ivar(dup, obj);
}

#endif /* RBIMPL_NEWOBJ_H */

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 17 2024 08:38:54
root / linksafe
0755
arithmetic
--
July 17 2024 08:38:54
root / linksafe
0755
attr
--
July 17 2024 08:38:54
root / linksafe
0755
compiler_is
--
July 17 2024 08:38:54
root / linksafe
0755
core
--
July 17 2024 08:38:54
root / linksafe
0755
has
--
July 17 2024 08:38:54
root / linksafe
0755
intern
--
July 17 2024 08:38:54
root / linksafe
0755
anyargs.h
36.226 KB
June 26 2024 13:55:16
root / linksafe
0644
arithmetic.h
2.045 KB
June 26 2024 13:55:16
root / linksafe
0644
assume.h
3.258 KB
June 26 2024 13:55:16
root / linksafe
0644
cast.h
2.328 KB
June 26 2024 13:55:16
root / linksafe
0644
compiler_is.h
2.055 KB
June 26 2024 13:55:16
root / linksafe
0644
compiler_since.h
2.715 KB
June 26 2024 13:55:16
root / linksafe
0644
config.h
4.554 KB
June 26 2024 13:55:16
root / linksafe
0644
constant_p.h
1.8 KB
June 26 2024 13:55:16
root / linksafe
0644
core.h
1.829 KB
June 26 2024 13:55:16
root / linksafe
0644
ctype.h
4.957 KB
June 26 2024 13:55:16
root / linksafe
0644
dllexport.h
3.476 KB
June 26 2024 13:55:16
root / linksafe
0644
dosish.h
1.992 KB
June 26 2024 13:55:16
root / linksafe
0644
error.h
3.835 KB
June 26 2024 13:55:16
root / linksafe
0644
eval.h
2.442 KB
June 26 2024 13:55:16
root / linksafe
0644
event.h
3.291 KB
June 26 2024 13:55:16
root / linksafe
0644
fl_type.h
13.288 KB
June 26 2024 13:55:16
root / linksafe
0644
gc.h
2.248 KB
June 26 2024 13:55:16
root / linksafe
0644
glob.h
1.691 KB
June 26 2024 13:55:16
root / linksafe
0644
globals.h
4.944 KB
June 26 2024 13:55:16
root / linksafe
0644
interpreter.h
3.041 KB
June 26 2024 13:55:16
root / linksafe
0644
iterator.h
3.023 KB
June 26 2024 13:55:16
root / linksafe
0644
memory.h
8.662 KB
June 26 2024 13:55:16
root / linksafe
0644
method.h
1.861 KB
June 26 2024 13:55:16
root / linksafe
0644
module.h
1.776 KB
June 26 2024 13:55:16
root / linksafe
0644
newobj.h
3.122 KB
June 26 2024 13:55:16
root / linksafe
0644
rgengc.h
5.921 KB
June 26 2024 13:55:16
root / linksafe
0644
scan_args.h
13.495 KB
June 26 2024 13:55:16
root / linksafe
0644
special_consts.h
6.375 KB
June 26 2024 13:55:16
root / linksafe
0644
static_assert.h
3.139 KB
June 26 2024 13:55:16
root / linksafe
0644
stdalign.h
4.523 KB
June 26 2024 13:55:16
root / linksafe
0644
stdbool.h
1.985 KB
June 26 2024 13:55:16
root / linksafe
0644
symbol.h
3.632 KB
June 26 2024 13:55:16
root / linksafe
0644
token_paste.h
3.296 KB
June 26 2024 13:55:16
root / linksafe
0644
value.h
2.733 KB
June 26 2024 13:55:16
root / linksafe
0644
value_type.h
10.489 KB
June 26 2024 13:55:16
root / linksafe
0644
variable.h
2.594 KB
June 26 2024 13:55:16
root / linksafe
0644
warning_push.h
4.31 KB
June 26 2024 13:55:16
root / linksafe
0644
xmalloc.h
15.605 KB
June 26 2024 13:55:16
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF