mirror of
https://github.com/subhobhai943/SUB-OS.git
synced 2026-10-25 16:52:29 +00:00
feat: Add freestanding C++17 OOP kernel subsystem and interactive Snake Game
- Add freestanding C++17 runtime with operator new/delete, pure virtual handlers, and global constructor execution in kernel/cpp/cxx_runtime.cpp - Implement C++ Object-Oriented telemetry and hardware services with polymorphism in kernel/cpp/cpp_module.cpp and include/kernel/cpp_kernel.h - Add interactive ANSI Snake Game in userland/lazybox/snake.c with real-time keyboard control and automated simulation mode - Initialize C++ subsystem during kernel boot step [8/14] in kernel/main.c - Add LazyBox applets: 'snake', 'cppinfo', and 'cpptest'
This commit is contained in:
1 parent
f3b47f9d22
commit
6eaf9397a2
10 files changed
+636
-6
No files matched your search
@@ -0,0 +1,25 @@
|
||||
#ifndef _KERNEL_CPP_KERNEL_H
|
||||
#define _KERNEL_CPP_KERNEL_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
// Initialize C++ Runtime and Object-Oriented Subsystems
|
||||
int cpp_kernel_init(void);
|
||||
|
||||
// Print C++ Subsystem Status and Telemetry
|
||||
void cpp_kernel_print_status(void);
|
||||
|
||||
// Run C++ OOP Virtual Dispatch and Template Test
|
||||
int cpp_test_oop_subsystem(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _KERNEL_CPP_KERNEL_H
|
||||
Reference in new issue
Block a user