tools/corrosion/test/cpp2rust/cpp2rust/lib2.cpp
author unC0Rr
Wed, 28 Aug 2024 15:31:51 +0200
branchtransitional_engine
changeset 16021 6a3dc15b78b9
permissions -rw-r--r--
Add corrosion as a subdirectory, CMake fixes

#include <iostream>
#include <stdint.h>

extern "C" void cpp_function2(char const *name) {
    std::cout << "Hello, " << name << "! I am Cpp library Number 2!\n";
}

extern "C" uint32_t get_42() {
    uint32_t v = 42;
    return v;
}