lua-users home
lua-l archive

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


SWIG creates a function

extern "C" int luaopen_foo(lua_State* L);

where "foo" is the name of your SWIG module.  You'll need to declare
this function in your C++ code and call it with your lua_State*.

.. Adam

On Feb 13, 2008 12:42 PM, Roger D. Vargas <luo_hei@yahoo.es> wrote:
> Im testing swig for wrapper code generation and according to docs, it
> should be easy: swig -lua -c++ classA.i
> This generates the required code, and such code should have a function
> named ClassA_Init(). What I have found is that such function is not
> created. Can somebody tell me if Im missing some step?
>
>
> --
> http://dsgp.blogspot.com | Linux, programación, juegos
> Have no place I can be since I found Serenity
> But you can't take the sky from me
>
>
> ______________________________________________
> LLama Gratis a cualquier PC del Mundo.
> Llamadas a fijos y móviles desde 1 céntimo por minuto.
> http://es.voice.yahoo.com
>