This is odd it means that I did not find the definition for a function.
I am wondering if your file contains tabs I did not account for tabs.
Try the included version see if it works added a line that replaces tabs by spaces.
If it fail comment the assert and see if it otherwise works.
If no joy could you post your LuaCocos2d.cpp.
Sorry about that.