[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Empty function determination
- From: Joseph Stewart <joseph.stewart@...>
- Date: Wed, 4 Aug 2004 11:24:05 -0400
Cheesy but how about:
function a() end
function b() g=1 end
=string.len(string.dump(a))
73
=string.len(string.dump(b))
105
On Wed, 4 Aug 2004 10:50:41 -0400, Dan East <dan@naxs.com> wrote:
> Lua functions are passed to my C code. I wish to determine if the Lua
> function is empty. Is this possible?
>
> --Empty function
> function foo()
> end
>
> --Empty function
> function foo2()
> --this is an empty function
> end
>
> --Not empty
> function foo3()
> global_bar=1
> end
>
> Thanks.
>
> Dan East
>
>