-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinterface.cpp
More file actions
33 lines (26 loc) · 732 Bytes
/
Copy pathinterface.cpp
File metadata and controls
33 lines (26 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// NOT MODIFY HERE !
// interface is used by the viewer to initialize the Registerer class
// Registerer class will register all custom functions & types needed into lua
// Note: You should modify register constructor implementation to register your own functions & types
#include "Registerer.h"
#if defined(__linux__) || defined(__APPLE__)
extern "C" {
Registerer* allocator(IApp &app, sol::state &lua) {
return new Registerer(app, lua);
}
void deleter(Registerer *ptr) {
delete ptr;
}
}
#endif
#ifdef WIN32
extern "C"
{
__declspec (dllexport) Registerer* allocator(IApp &app, sol::state &lua) {
return new Registerer(app, lua);
}
__declspec (dllexport) void deleter(Registerer *ptr) {
delete ptr;
}
}
#endif