Add system module with System class, core native exception helper and remove useless builtins
Build / AerScript (push) Successful in 50s

This commit is contained in:
2026-11-24 09:34:27 +01:00
parent cb894f66fd
commit 1db842fe0f
20 changed files with 1050 additions and 1145 deletions
+24
View File
@@ -0,0 +1,24 @@
/**
* @PROJECT AerScript Interpreter
* @COPYRIGHT See COPYING in the top level directory
* @FILE modules/system/system.h
* @DESCRIPTION System class module for AerScript Interpreter
* @DEVELOPERS Rafal Kupiec <belliash@codingworkshop.eu.org>
*/
#ifndef __SYSTEM_H__
#define __SYSTEM_H__
#include "ph7.h"
#include "ph7int.h"
#define MODULE_DESC "System Module"
#define MODULE_VER 1.0
/* SystemException error codes, also published as System class constants. */
#define SYS_ERROR_NONE 0
#define SYS_ERROR_ARGUMENT 1
#define SYS_ERROR_IO 2
PH7_PRIVATE sxi32 initializeModule(ph7_vm *pVm, ph7_real *ver, SyString *desc);
#endif