71 const char *idstr, *logname, *logtype;
72 int overwrite, maxLen;
74 idstr = luaL_checkstring( L, 1 );
75 logname = luaL_checkstring( L, 2 );
76 logtype = luaL_checkstring( L, 3 );
77 overwrite = lua_toboolean( L, 4 );
78 maxLen = luaL_optinteger( L, 5, 0 );
int shiplog_create(const char *idstr, const char *logname, const char *type, int overwrite, int maxLen)
Creates a new log with given title of given type.