gooey-suncat/lib.cxx

22 lines
299 B
C++
Raw Normal View History

2024-10-11 15:06:50 +01:00
// Global module fragment, where #includes can happen
module;
#include <iostream>
export module lib;
export class lib
{
public:
lib();
~lib();
void helloworld();
};
lib::lib() = default;
lib::~lib() = default;
void lib::helloworld()
{
std::cout << "Hello world!" << std::endl;
}