[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: functions, errors: is it good to report back the filename?
- From: Francisco Olarte <folarte@...>
- Date: Wed, 13 May 2020 21:51:07 +0200
Massimo:
First of all, I seem to have mixed your thread with another one (
Sorry Andrea ). It seems two Italian looking names are too much for me
to disambiguate, it makes me feel really old :( .
On Wed, May 13, 2020 at 6:59 PM Massimo Sala <massimo.sala.71@gmail.com> wrote:
> I agree, my use case is too specific.
> I solved pre-allocating a buffer for error strings before calling any lua function.
> Calculation the buffer size, I take care of the maximum length of filenames.
> When I get an error from lauxlib, I strncpy the error string to the preallocated buffer.
That's a way to do it. What surprises me is you have long filenames in
an embedded low memory systems, the ones I've used in this category,
when they had filesystems, had very simple ones.
Francisco Olarte.
_______________________________________________
lua-l mailing list -- lua-l@lists.lua.org
To unsubscribe send an email to lua-l-leave@lists.lua.org