lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
how to construct sturct object in lua
From
: Jim zhang <jimzhang02@
...
>
Date
: Wed, 6 Mar 2013 20:36:29 -0800 (PST)
Code to be test:
struct A
{
int a,
int b
};
int sum ( struct A * s)
{
retunr s->a+s->b;
}
How could I construct a struct A object in lua scripts, and pass the pointer of this struct into sum() to test it?
Thanks,
Jim
Follow-Ups
:
Re: how to construct sturct object in lua
,
Spencer Parkin
Re: how to construct sturct object in lua
,
Sean Conner
Prev by Date:
Re: Debugging Lua Scripts using Decoda editor
Next by Date:
Re: Proposal: smartlua
Previous by thread:
Re: Debugging Lua Scripts using Decoda editor
Next by thread:
Re: how to construct sturct object in lua
Index(es):
Date
Thread