title: C++ Lua Error Handling
body: <p>I am working on a program (C++, with D3D9) and Lua. I already implemented the LUA Api and everything is working fine, beside the error handling. I googled alot and I found a solution that handles most of the errors. I write this because of the other errors.</p>
  
  <p>I will show you some relevant code in pictures.</p>
  
  <p><img src="https://i.stack.imgur.com/OOJpG.png" alt="Code Part 1 (LUA)"></p>
  
  <p><img src="https://i.stack.imgur.com/FIJpg.png" alt="Code Part 2 (LUA)"></p>
  
  <p><img src="https://i.stack.imgur.com/0ZnKu.png" alt="Part 3 (Console Output)"></p>
  
  <p>Now the most important functions: PerformCall() and LuaErrorReport()</p>
  
  <p><img src="https://i.stack.imgur.com/4mrMt.png" alt="Part 4 (C++)">
  <img src="https://i.stack.imgur.com/B9MDD.png" alt="Part 5 (PerformCall)"></p>
  
  <p>However, as I said before: Some errors are being handled. But this one is not.</p>