diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-29 17:27:19 -0500 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-29 17:27:19 -0500 |
| commit | dad25544802de6d4cd839f5d6d5753ad7faeef97 (patch) | |
| tree | ac60308829c163689c47da059d5de14296d81f4e /src/Tools/cppdrv.cc | |
| parent | bdef578a578177ce95c01fa061a028292556ecbe (diff) | |
chore: update general specs and citation file, breaking project structure changes as well.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/Tools/cppdrv.cc')
| -rw-r--r-- | src/Tools/cppdrv.cc | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/Tools/cppdrv.cc b/src/Tools/cppdrv.cc new file mode 100644 index 0000000..2cccf2b --- /dev/null +++ b/src/Tools/cppdrv.cc @@ -0,0 +1,27 @@ +/* ======================================== + + Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license + +======================================== */ + +/// @file cxxdrv.cc +/// @brief NeCTI frontend preprocessor. + +#include <CompilerKit/Defines.h> +#include <CompilerKit/ErrorID.h> +#include <CompilerKit/Version.h> +#include <cstring> +#include <iostream> +#include <vector> + +CK_IMPORT_C int CPlusPlusPreprocessorMain(int argc, char const* argv[]); + +int main(int argc, char const* argv[]) { + if (auto code = CPlusPlusPreprocessorMain(argc, argv); code > 0) { + std::printf("cppdrv: preprocessor exited with code %i.\n", code); + + return NECTI_EXEC_ERROR; + } + + return NECTI_SUCCESS; +} |
