A question about call c function in lua
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: A question about call c function in lua
- From: cabbage <snowcabbage@...>
- Date: Tue, 4 Mar 2008 17:51:00 +0800
pure c code like this:
struct list{
struct list * prev;
struct list * next;
void * data;
};
int list_travel(struct list *h)
{
.....
}
The function list_travel travel the hole list h and do something, how can I can this function in lua script? Thanks.