blob: 7c1fefab1e6a37a540afc8ecc6e8c7f206d8482f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include <loadlualibs.h>
#include <Buffer.h>
extern unsigned int size_supportlib;
extern unsigned char supportlib[];
extern unsigned int size_tasklib;
extern unsigned char tasklib[];
void LoadLuaLibs(Lua * L) {
Buffer supportlib_buff;
supportlib_buff.write(supportlib, size_supportlib);
L->load(&supportlib_buff);
Buffer tasklib_buff;
tasklib_buff.write(tasklib, size_tasklib);
L->load(&tasklib_buff);
}
|