I am trying call a table using c API and Lua5.1.
I'm doing it by following steps:
- create a table "mt" that has
__call
metafunction - create a table "newT" and set "mt" to "newT" metatable
pcall
"newT"
My problem is at step 3, I get the error: "attempt to call a table value"
Can anyone tell me how to call a table in c?