improved base and added PP defines KERNEL_UPSTREAM TESTING DEBUG

This commit is contained in:
adeliktas
2023-10-28 03:55:19 +02:00
parent a6a285b82c
commit fb5d501d88
26 changed files with 813 additions and 476 deletions

24
um/test/math_module.cpp Normal file
View File

@@ -0,0 +1,24 @@
#include "math_module.h"
MathModule::MathModule() {
// Constructor, if any initialization is needed
}
int MathModule::add(int a, int b) {
return a + b;
}
int MathModule::subtract(int a, int b) {
return a - b;
}
int MathModule::multiply(int a, int b) {
return a * b;
}
double MathModule::divide(double a, double b) {
if (b == 0) {
throw "Division by zero is not allowed.";
}
return a / b;
}