now trying to build
This commit is contained in:
15
modules/print/src/print.cpp
Normal file
15
modules/print/src/print.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include "print.h"
|
||||
|
||||
Print::Print(void* h) {
|
||||
handle = h;
|
||||
name = "Print";
|
||||
}
|
||||
|
||||
Print::~Print() {
|
||||
std::cout << "Print Destroyed!\n";
|
||||
}
|
||||
|
||||
void Print::run() {
|
||||
std::cout << "Print lib loaded and run!\n";
|
||||
App::Get().unload(self);
|
||||
}
|
||||
16
modules/print/src/print.h
Normal file
16
modules/print/src/print.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#include "../../../include/Archimedes.h"
|
||||
|
||||
class Print : public Module {
|
||||
|
||||
public:
|
||||
Print(void*);
|
||||
~Print();
|
||||
void run();
|
||||
|
||||
};
|
||||
|
||||
extern "C" {
|
||||
Module* create(void* handle) {
|
||||
return new Print(handle);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user