lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tuesday 14, Digital wrote:
> PS when I run it as "somevar*:*testfunc(data)" it says "string expected,
> got table".

I was trying to make sure that the userdata value wasn't coming from 
"somevar".  Since your C function only takes one parameter it should be called 
using a "." instead of ":".  You need to find out where the userdata value is 
coming from "data" shouldn't be a userdata value.

For debugging you can check the type of "data" before calling "testfunc" with 
this:
print("type(data) == ", type(data))


-- 
Robert G. Jakabosky