Stricter env objects to attach to ci

- Don't create multiple envs on one ci.
  - Don't share a env to different ci.
  - Don't attach a closed env to any ci.

Changes in `envadjust()` can be simplified with those guarantees.
This commit is contained in:
dearblue
2024-04-13 22:13:04 +09:00
parent d761561be3
commit e3d51497cf
2 changed files with 13 additions and 5 deletions
+7
View File
@@ -16,6 +16,13 @@
*/
MRB_BEGIN_DECL
/*
* env object (for internal used)
*
* - don't create multiple envs on one ci.
* - don't share a env to different ci.
* - don't attach a closed env to any ci.
*/
struct REnv {
MRB_OBJECT_HEADER;
mrb_value *stack;