2012-10-02 00:42:05 +04:00
|
|
|
#include <lua.hpp>
|
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
|
|
#include "pugilua_lib.h"
|
|
|
|
|
|
2012-10-04 23:39:26 +04:00
|
|
|
#ifdef _MSC_VER
|
2012-10-04 23:23:08 +04:00
|
|
|
#define PUGILUA __declspec(dllexport)
|
|
|
|
|
#else
|
|
|
|
|
#define PUGILUA
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
extern "C" PUGILUA int luaopen_pugilua (lua_State* L) {
|
2012-10-02 00:42:05 +04:00
|
|
|
register_pugilua(L);
|
|
|
|
|
return 1;
|
2012-10-04 23:23:08 +04:00
|
|
|
}
|