summaryrefslogtreecommitdiffhomepage
path: root/dev/CompilerKit/src/Macro
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-08-05 09:47:53 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-08-05 09:47:53 +0100
commitb0c5f2a2683657182f5ce3dc3bcbf252164b0077 (patch)
treea2f43f8d5943ce4825a0f1eb4e921d30e8e78eb9 /dev/CompilerKit/src/Macro
parente272dd8e4d2437423b5140ad76cb690f4e182d76 (diff)
feat! compiler_kit & debugger_kit: breaking changes, big name refactors on the source code have been done.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/CompilerKit/src/Macro')
-rw-r--r--dev/CompilerKit/src/Macro/CPlusPlusCompilerPreProcessor.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/dev/CompilerKit/src/Macro/CPlusPlusCompilerPreProcessor.cc b/dev/CompilerKit/src/Macro/CPlusPlusCompilerPreProcessor.cc
index 12a69c8..9845967 100644
--- a/dev/CompilerKit/src/Macro/CPlusPlusCompilerPreProcessor.cc
+++ b/dev/CompilerKit/src/Macro/CPlusPlusCompilerPreProcessor.cc
@@ -725,7 +725,7 @@ void bpp_parse_file(std::ifstream& hdr_file, std::ofstream& pp_out) {
/////////////////////////////////////////////////////////////////////////////////////////
-LIBCOMPILER_MODULE(CPlusPlusPreprocessorMain) {
+NECTI_MODULE(CPlusPlusPreprocessorMain) {
try {
bool skip = false;
bool double_skip = false;
@@ -760,7 +760,7 @@ LIBCOMPILER_MODULE(CPlusPlusPreprocessorMain) {
Detail::bpp_macro macro_zka;
- macro_zka.fName = "__LIBCOMPILER__";
+ macro_zka.fName = "__NECTI__";
macro_zka.fValue = "1";
kMacros.push_back(macro_zka);
@@ -806,7 +806,7 @@ LIBCOMPILER_MODULE(CPlusPlusPreprocessorMain) {
"NeKernel Preprocessor Driver v1.11, (c) Amlal El Mahrouss 2024-2025 all rights "
"reserved.");
- return LIBCOMPILER_SUCCESS;
+ return NECTI_SUCCESS;
}
if (strcmp(argv[index], "-cpp-help") == 0) {
@@ -819,7 +819,7 @@ LIBCOMPILER_MODULE(CPlusPlusPreprocessorMain) {
printf("%s\n", "-cpp-ver: print the version.");
printf("%s\n", "-cpp-help: show help (this current command).");
- return LIBCOMPILER_SUCCESS;
+ return NECTI_SUCCESS;
}
if (strcmp(argv[index], "-cpp-include-dir") == 0) {
@@ -871,7 +871,7 @@ LIBCOMPILER_MODULE(CPlusPlusPreprocessorMain) {
kFiles.emplace_back(argv[index]);
}
- if (kFiles.empty()) return LIBCOMPILER_EXEC_ERROR;
+ if (kFiles.empty()) return NECTI_EXEC_ERROR;
for (auto& file : kFiles) {
if (!std::filesystem::exists(file)) continue;
@@ -882,12 +882,12 @@ LIBCOMPILER_MODULE(CPlusPlusPreprocessorMain) {
bpp_parse_file(file_descriptor, file_descriptor_pp);
}
- return LIBCOMPILER_SUCCESS;
+ return NECTI_SUCCESS;
} catch (const std::runtime_error& e) {
std::cout << e.what() << '\n';
}
- return LIBCOMPILER_EXEC_ERROR;
+ return NECTI_EXEC_ERROR;
}
// Last rev 8-1-24