Commit e9a24b1c

e9a24b1c41c0Merged

Yukihiro "Matz" Matsumoto <[email protected]> · 7 months ago · 2 files · ~2 modified

Description

feat: add Kernel#sleep

Wraps POSIX sleep() with integer seconds. Added unistd.h include to sp_runtime.h for the sleep() declaration.

Co-Authored-By: Claude Opus 4.6 (1M context) [email protected]

Details

Commit
e9a24b1c41c0
Parent
b27b2d63aa62

lib/sp_runtime.hmodifiedView file

@@ -13,6 +13,7 @@
1313 #include <time.h>
1414 #include <setjmp.h>
1515 #include <ucontext.h>
16+#include <unistd.h>
1617
1718 typedef int64_t mrb_int;
1819 typedef double mrb_float;