Program Listing for File KataglyphisCppProject.ixx

Program Listing for File KataglyphisCppProject.ixx#

Return to documentation for file (Src/KataglyphisCppProject.ixx)

module;

#include <cstdint>
#include <iostream>

export module kataglyphis_core;

import kataglyphis_config;

#if USE_RUST
extern "C" {
auto rusty_extern_c_integer() -> int32_t;
}
#endif

export namespace kataglyphis {
// NOLINTNEXTLINE(misc-use-internal-linkage)
auto run() -> int
{
#if USE_RUST
    std::cout << "A value given directly by extern c function " << rusty_extern_c_integer() << "\n";
#endif

    std::cout << "Kataglyphis version " << kataglyphis::config::renderer_version_major << "."
              << kataglyphis::config::renderer_version_minor << "\n";

    std::cout << "Hello World! \n";
    return 0;
}
} // namespace kataglyphis