lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 15/04/2011, at 10:14 AM, Gilles Ganault wrote:

> ================== dummy2.c
> #include <stdio.h>
> #include "lua.h"
> 
> int luaopen_dummy (lua_State *L) {

luaopen_dummy2

> puts("Hello from dummy");
> lua_pushnil(L);
> puts("Bye from dummy");
> return 0;
> }
> 
> dummy2.so:
>        $(CC) $(CFLAGS) $(LDFLAGS) -o $@ dummy2.c