aboutsummaryrefslogtreecommitdiff
path: root/src/core.c
blob: d2acb95f8c7b54a55c4eb2f41a7db3b1dbce8854 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <lua.h>
#include <lauxlib.h>

#ifdef _WIN32
#define LUAEXPORT __declspec(dllexport)
#else
#define LUAEXPORT __attribute__((visibility("default")))
#endif

void time_open(lua_State *L);

/*-------------------------------------------------------------------------
 * Initializes all library modules.
 *-------------------------------------------------------------------------*/
LUAEXPORT int luaopen_system_core(lua_State *L) {
    lua_newtable(L);
    time_open(L);
    return 1;
}