diff options
author | Christian Pointner <equinox@anylike.org> | 2009-12-25 07:49:33 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anylike.org> | 2009-12-25 07:49:33 +0000 |
commit | fee76a99f13148d95b7e660b6bf787cd695f9df8 (patch) | |
tree | 54e60dd61164e0512a67a493883ff102aeeb6073 /src/anylike.c | |
parent | added configure, makefile and initial manpage (diff) |
added main files
updated readme (dependencies)
Diffstat (limited to 'src/anylike.c')
-rw-r--r-- | src/anylike.c | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/anylike.c b/src/anylike.c new file mode 100644 index 0000000..ae65ef9 --- /dev/null +++ b/src/anylike.c @@ -0,0 +1,44 @@ +/* + * anylike + * + * anylike is a ... + * + * + * Copyright (C) 2009-2010 Markus Grueneis <gimpf@anylike.org> + * Christian Pointner <equinox@anylike.org> + * + * This file is part of anylike. + * + * anylike is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * anylike is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with anylike. If not, see <http://www.gnu.org/licenses/>. + */ + +#include <stdlib.h> +#include <stdio.h> + +#include <lua50/lua.h> + +int main(int argc, char* argv[]) +{ + lua_State *L; + L = lua_open(); + luaopen_base(L); + + printf("will now start main_loop.lua:\n"); + lua_dofile(L, "main_loop.lua"); + printf("script.lua just returned\n"); + + lua_close(L); + + return 0; +} |