Lua_Register.
Check out The Programming Language Lua, and download the source code. Find how functions get registered. Look at WoWX, WoWX hooks Lua_Register. You need to patch a invalid function check to be able to register your own functions, but once you do you can call it in game and pass whatever you want through it to your C++ function.