[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua2C - C2Lua overflow
- From: Supratik Champati <champati@...>
- Date: Tue, 23 Feb 1999 07:36:28 -0500
There are to may .pkg files
what I was doing was something like
...
lua_iolibopen();
lua_strlibopen();
lua_mathlibopen();
tolua_mylib_1_open();
tolua_mylib_2_open();
tolua_mylib_3_open();
...
...
tolua_mylib_n_open();
I think when n became to large it gave me the error.
For right now I went inside the source code and
doubled the STACK_LIMIT and STACK_UNIT and it worked.
When I get the some time I will try the begin and end blocks
(thanx for the help guys).
If you still want the .pkg files let me know -
Thanx.
Supratik.
// here is a sample
//--------------------------------------------------------------//
// graph.pkg //
//--------------------------------------------------------------//
$#include "graph_object.h"
class GraphicsObject //Base class
{
~CLexGraphicsObject();
int getId();
void draw(Canvas *) const;
$#ifdef OPENGL
void draw_for_feedback(Canvas *) const;
$#endif
void erase(Canvas *) const;
Coord* getPoints();
int numPoints();
int isComposite() const;
};
Waldemar Celes wrote:
>
> Supratik Champati wrote:
> >
> > I am using tolua to make my C/C++ routines available to
> > lua. Is there a limit to the number of functions that
> > can be on the stack ?
> >
> > I am getting the following message
> > lua : Lua2C - C2Lua overflow
> > Active Stack:
> > `settable' tag method [in file (C)]
> > lua: exit(1). Unable to recover
> >
> > Is there a way to solve the above problem ?
> >
> > I will appreciate any help in this matter.
> >
>
> are you using tolua 3.0, right?
>
> could you send me your .pkg file?
>
> -- waldemar