参考文章https://blog.codingnow.com/2015/05/lua_c_api.html
if(lua_pcall(m_pLua, 0, 1, 0)) { printf("file=%s, func=%s, line=%d ", __FILE__, __FUNCTION__,__LINE__); printf("error %s ", lua_tostring(m_pLua,-1)); TRACE_ERR("file=%s, func=%s, line=%d ", __FILE__, __FUNCTION__,__LINE__); TRACE_ERR("error %s ", lua_tostring(m_pLua,-1)); exit(1); }