diff options
Diffstat (limited to 'src/core.c')
-rw-r--r-- | src/core.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c new file mode 100644 index 0000000..d2acb95 --- /dev/null +++ b/src/core.c | |||
@@ -0,0 +1,19 @@ | |||
1 | #include <lua.h> | ||
2 | #include <lauxlib.h> | ||
3 | |||
4 | #ifdef _WIN32 | ||
5 | #define LUAEXPORT __declspec(dllexport) | ||
6 | #else | ||
7 | #define LUAEXPORT __attribute__((visibility("default"))) | ||
8 | #endif | ||
9 | |||
10 | void time_open(lua_State *L); | ||
11 | |||
12 | /*------------------------------------------------------------------------- | ||
13 | * Initializes all library modules. | ||
14 | *-------------------------------------------------------------------------*/ | ||
15 | LUAEXPORT int luaopen_system_core(lua_State *L) { | ||
16 | lua_newtable(L); | ||
17 | time_open(L); | ||
18 | return 1; | ||
19 | } | ||