blob: 72cfb364273b544cc4f9b0b500f983c22c7372bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/* -------------------------------------------
Copyright (C) 2024-2025 Amlal EL Mahrous, all rights reserved
------------------------------------------- */
/// @file cxxdrv.cc
/// @brief NE frontend preprocessor.
#include <LibCompiler/Defines.h>
#include <LibCompiler/ErrorID.h>
#include <LibCompiler/Version.h>
#include <iostream>
#include <cstring>
#include <vector>
LC_IMPORT_C int CPlusPlusPreprocessorMain(int argc, char const* argv[]);
int main(int argc, char const* argv[])
{
if (auto code = CPlusPlusPreprocessorMain(2, argv);
code > 0)
{
std::printf("cppdrv: preprocessor exited with code %i.\n", code);
return LIBCOMPILER_EXEC_ERROR;
}
return LIBCOMPILER_SUCCESSS;
}
|