From 3e0dc1e81e0fa0960abca18bba6c560df4317adb Mon Sep 17 00:00:00 2001 From: Robert Schumacher Date: Thu, 2 Mar 2017 07:16:46 -0800 Subject: [PATCH] [lua] Expanded comment on COMPILE_AS_CPP --- ports/lua/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ports/lua/CMakeLists.txt b/ports/lua/CMakeLists.txt index b82c63e42b5a3e..faef8018b31480 100644 --- a/ports/lua/CMakeLists.txt +++ b/ports/lua/CMakeLists.txt @@ -1,6 +1,11 @@ # Lua can be compiled as either C or C++. # Default configuration is C, set COMPILE_AS_CPP to ON to use C++. # See http://stackoverflow.com/questions/13560945/c-and-c-library-using-longjmp for why would you want to do that. +# Primary differences: +# - Exceptions will be used instead of setjmp/longjmp +# - The name mangling for functions will be C++ instead of C. +# - This is a source-incompatible change because extern "C" is chosen by the including application. +# - The lua.hpp header will not be available. PROJECT ( lua )