gooey-suncat/game/src/game.cxx

23 lines
281 B
C++
Raw Normal View History

2024-10-11 14:06:50 +00:00
// Global module fragment, where #includes can happen
module;
2024-10-11 15:22:11 +00:00
import std;
export module game;
2024-10-11 14:06:50 +00:00
export class lib
{
public:
lib();
~lib();
void helloworld();
};
lib::lib() = default;
lib::~lib() = default;
void lib::helloworld()
{
2024-10-11 15:22:11 +00:00
std::print("Hello world!\n");
2024-10-11 14:06:50 +00:00
}