diff options
author | Yusuke Endoh <[email protected]> | 2025-03-13 20:45:23 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2025-03-13 22:08:01 +0900 |
commit | ee1f39ef882e7ce175794e6286c0dcafba0bfa35 (patch) | |
tree | 233653f475db398e6c5d1b6fc7ed966cee8c4eae /load.c | |
parent | 4b844f7d9e2f41cd6c0e9f1d30dcbf1a0f24b449 (diff) |
Add a document to autoload
Users are responsible for avoiding circular autoload.
[Misc #21154]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12926
Diffstat (limited to 'load.c')
-rw-r--r-- | load.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1471,6 +1471,9 @@ ruby_init_ext(const char *name, void (*init)(void)) * If _const_ in _mod_ is defined as autoload, the file name to be * loaded is replaced with _filename_. If _const_ is defined but not * as autoload, does nothing. + * + * Files that are currently being loaded must not be registered for + * autoload. */ static VALUE @@ -1535,6 +1538,9 @@ rb_mod_autoload_p(int argc, VALUE *argv, VALUE mod) * If _const_ is defined as autoload, the file name to be loaded is * replaced with _filename_. If _const_ is defined but not as * autoload, does nothing. + * + * Files that are currently being loaded must not be registered for + * autoload. */ static VALUE |