Re:binding a c++ unary_function to lua
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re:binding a c++ unary_function to lua
- From: "Linker Lin" <linker.lin@...>
- Date: Mon, 7 Jan 2008 16:39:48 +0800
U can try tolua++!
------------------
------------------ Original ------------------
From: "Panagiotis Vossos"<pavossos@gmail.com>;
Date: 2008年1月7日(星期一) 下午03:51
To: "Lua list"<lua@bazar2.conectiva.com.br>;
Subject: binding a c++ unary_function to lua
While experimenting with stl binders yesterday, I had the following
problem. Let's say we have a
derived from std::unary_function c++ struct with the method:
int operator()(lua_State *L) const { ... }.
Is there any easy way to make it available to lua as a normal function?
thanks in advance,
panagiotis.