Possible Duplicate:
Redirecting/redefining print() for embedded Lua
I am new to Lua and rather confused. I have seen this but Im not sure it works for 5.2.
I have read about _ENV table(?) but again not sure if this has anything to do with it.
So on to the question: How do I, in C/C++, redirect the in-built print function of Lua 5.2 to call my own C/C++ function?