[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: C preprocessor style #line support
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 25 Aug 2011 20:18:44 -0300
> So I started thinking about how to coax Lua into doing this _and_ allow
> a Lua debugger to still work.
> It would be nice to feed this to Lua (or equivalent):
> #line 1 "fileA.lua"
> local MY_DEFINE = 5
> #line 2 "fileA.lua"
> local YOUR_DEFINE = 10
> #line 1 "fileB.lua"
> #line 2 "fileB.lua"
> Are there any fancy techniques to pull this off? Noticing the layout of
> the Proto structure, I don't think there are. It seems to have only one
> filename per Proto.
That's the real problem. Line numbers are not hard. See