build(wasm): libconstants can now compile to wasm and run as a wasm module

This commit is contained in:
2025-12-03 08:21:40 -05:00
parent efba74d9fe
commit 793e6528d5
7 changed files with 65 additions and 5 deletions

13
examples/simple.cpp Normal file
View File

@@ -0,0 +1,13 @@
#include "fourdst/constants/const.h"
#include <iostream>
int main() {
fourdst::constant::Constants& C = fourdst::constant::Constants::getInstance();
std::cout << "Speed of light is " << C.get("c") << std::endl;
std::cout << "All avalible constants are: ";
for (const auto& key : C.keys()) {
std::cout << "\t " << key << ": " << C[key];
}
}