blob: acb215f9e481d15f543845464ad614b9200b5005 (
plain)
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
34
35
36
37
|
#include "math.h"
#pragma comment(lib, "lua.lib")
#define MATH_API __declspec(dllexport)
MATH_API int /*__cdecl*/ luaopen_math_vector(lua_State* L)
{
lua_pushstring(L, "math.vector module");
return 1;
}
extern "C" MATH_API int /*__cdecl*/ luaopen_math_matrix(lua_State* L)
{
lua_pushstring(L, "math.matrix module");
return 1;
}
extern "C" MATH_API int /*__cdecl*/ luaopen_math_quaternion(lua_State* L)
{
lua_pushstring(L, "math.quaternion module");
return 1;
}
MATH_API void foo()
{
}
class MATH_API Vector
{
};
|